Refactor: Light pass of didInsertElement calls of views

This commit is contained in:
Robin Ward
2013-06-07 12:13:46 -04:00
parent f23807af8f
commit 7c715e76e8
14 changed files with 101 additions and 113 deletions
@@ -34,9 +34,9 @@ Discourse.AdminCustomizeView = Discourse.View.extend({
},
didInsertElement: function() {
var _this = this;
var controller = this.get('controller');
return Mousetrap.bindGlobal(['meta+s', 'ctrl+s'], function() {
_this.get('controller').save();
controller.save();
return false;
});
},