From 289599733d6bca9258743225d21e12aec49dde5f Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Fri, 6 Jul 2012 11:33:00 -0400 Subject: [PATCH] Make it more obvious that the function is no-op --- cms/static/coffee/spec/main_spec.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/static/coffee/spec/main_spec.coffee b/cms/static/coffee/spec/main_spec.coffee index 78783ff9a0..a9a84da007 100644 --- a/cms/static/coffee/spec/main_spec.coffee +++ b/cms/static/coffee/spec/main_spec.coffee @@ -25,7 +25,7 @@ describe "CMS", -> describe "replaceView", -> beforeEach -> @newView = jasmine.createSpy("newView") - CMS.on "content.show", (@expectedView) => + CMS.on("content.show", (@expectedView) =>) CMS.replaceView(@newView) it "replace the views on the viewStack", -> @@ -37,7 +37,7 @@ describe "CMS", -> describe "pushView", -> beforeEach -> @newView = jasmine.createSpy("newView") - CMS.on "content.show", (@expectedView) => + CMS.on("content.show", (@expectedView) =>) CMS.pushView(@newView) it "push new view onto viewStack", -> @@ -54,7 +54,7 @@ describe "CMS", -> describe "when there's no view on the viewStack", -> beforeEach -> CMS.viewStack = [@currentView] - CMS.on "content.hide", => @eventTriggered = true + CMS.on("content.hide", => @eventTriggered = true) CMS.popView() it "trigger content.hide on CMS", -> @@ -64,7 +64,7 @@ describe "CMS", -> beforeEach -> @parentView = jasmine.createSpyObj("parentView", ["delegateEvents"]) CMS.viewStack = [@parentView, @currentView] - CMS.on "content.show", (@expectedView) => + CMS.on("content.show", (@expectedView) =>) CMS.popView() it "trigger content.show with the previous view on CMS", ->