Fixed a bunch of 'best of' errors and cleaned up JS.

This commit is contained in:
Robin Ward
2013-03-21 15:10:34 -04:00
parent b6f49e5b68
commit 5c4b794a8c
13 changed files with 128 additions and 153 deletions

View File

@ -49,7 +49,7 @@ Discourse.AdminCustomizeController = Ember.Controller.extend({
var selected;
if (result) {
selected = _this.get('content.selectedItem');
selected["delete"]();
selected.destroy();
_this.set('content.selectedItem', null);
return _this.get('content').removeObject(selected);
}