Skip to content

Commit

Permalink
Use coffeescript @ notation instead of this
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Guzei committed Jan 31, 2012
1 parent bd6571e commit df320dc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/app/App.js.coffee
Expand Up @@ -16,4 +16,4 @@ App.states = {}
App.templates = {} App.templates = {}


# export App to global namespace # export App to global namespace
this.App = App @App = App
@@ -1,5 +1,5 @@


App = this.App App = @App


App.controllers.statechartController = SC.Object.create(SC.StatechartDelegate, { App.controllers.statechartController = SC.Object.create(SC.StatechartDelegate, {


Expand Down
@@ -1,5 +1,5 @@


App = this.App App = @App


App.mediators.authenticationMediator = SC.Object.create { App.mediators.authenticationMediator = SC.Object.create {


Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/app/statechart.js.coffee
Expand Up @@ -5,7 +5,7 @@
#= require app/states/BrowsingState #= require app/states/BrowsingState
#= require app/states/AuthenticationState #= require app/states/AuthenticationState


App = this.App App = @App


App.statechart = SC.Statechart.create { App.statechart = SC.Statechart.create {


Expand Down
@@ -1,7 +1,7 @@


#= require app/mediators/authenticationMediator #= require app/mediators/authenticationMediator


App = this.App App = @App


App.states.AuthenticationState = SC.State.extend { App.states.AuthenticationState = SC.State.extend {


Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/app/states/BrowsingState.js.coffee
@@ -1,6 +1,6 @@
#= require app/mediators/authenticationMediator #= require app/mediators/authenticationMediator


App = this.App App = @App


App.states.BrowsingState = SC.State.extend { App.states.BrowsingState = SC.State.extend {


Expand Down

0 comments on commit df320dc

Please sign in to comment.