mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Fixed a bunch of 'best of' errors and cleaned up JS.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user