Remove duplicate mixing in of Discourse.Presence
AdminEmailIndexController and AdminEmailPreviewDigestController explicitely mix in Discourse.Presence, but they extend base classes Discourse.Controller and Discourse.ObjectController that already mix in Discourse.Presence, so this explicit inclusion is redundant.
This commit is contained in:
parent
aca567b4d7
commit
7da10c0149
|
@ -6,7 +6,7 @@
|
||||||
@namespace Discourse
|
@namespace Discourse
|
||||||
@module Discourse
|
@module Discourse
|
||||||
**/
|
**/
|
||||||
Discourse.AdminEmailIndexController = Discourse.Controller.extend(Discourse.Presence, {
|
Discourse.AdminEmailIndexController = Discourse.Controller.extend({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Is the "send test email" button disabled?
|
Is the "send test email" button disabled?
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
@namespace Discourse
|
@namespace Discourse
|
||||||
@module Discourse
|
@module Discourse
|
||||||
**/
|
**/
|
||||||
Discourse.AdminEmailPreviewDigestController = Discourse.ObjectController.extend(Discourse.Presence, {
|
Discourse.AdminEmailPreviewDigestController = Discourse.ObjectController.extend({
|
||||||
|
|
||||||
refresh: function() {
|
refresh: function() {
|
||||||
var model = this.get('model');
|
var model = this.get('model');
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
module("Discourse.AdminEmailIndexController");
|
||||||
|
|
||||||
|
test("mixes in Discourse.Presence", function() {
|
||||||
|
ok(Discourse.Presence.detect(Discourse.AdminEmailIndexController.create()));
|
||||||
|
});
|
|
@ -0,0 +1,5 @@
|
||||||
|
module("Discourse.AdminEmailPreviewDigestController");
|
||||||
|
|
||||||
|
test("mixes in Discourse.Presence", function() {
|
||||||
|
ok(Discourse.Presence.detect(Discourse.AdminEmailPreviewDigestController.create()));
|
||||||
|
});
|
Loading…
Reference in New Issue