function clickToOrder (e) {
e.target.classList.add('active');
console.log(this); // а это тот же e.target — вы же зачем-то вызывали bind()
};
{ "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\[$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
]
}
// ApplicationController.js
export default class ApplicationController {
constructor(someService) {
this.someService = someService;
}
someMethod() {
return this.someService.someMethod();
}
}
// app.js
import ApplicationController from './ApplicationController';
angular
.module('app', [])
.controller({
ApplicationController: ApplicationController
})
;