Skip to content
Browse files

Use coffeescript @ notation instead of this

  • Loading branch information...
1 parent bd6571e commit df320dcb900c88c47df7233e3f12c8e8986b275c Dominik Guzei committed Jan 31, 2012
View
2 app/assets/javascripts/app/App.js.coffee
@@ -16,4 +16,4 @@ App.states = {}
App.templates = {}
# export App to global namespace
-this.App = App
+@App = App
View
2 app/assets/javascripts/app/controllers/statechartController.js.coffee
@@ -1,5 +1,5 @@
-App = this.App
+App = @App
App.controllers.statechartController = SC.Object.create(SC.StatechartDelegate, {
View
2 app/assets/javascripts/app/mediators/authenticationMediator.js.coffee
@@ -1,5 +1,5 @@
-App = this.App
+App = @App
App.mediators.authenticationMediator = SC.Object.create {
View
2 app/assets/javascripts/app/statechart.js.coffee
@@ -5,7 +5,7 @@
#= require app/states/BrowsingState
#= require app/states/AuthenticationState
-App = this.App
+App = @App
App.statechart = SC.Statechart.create {
View
2 app/assets/javascripts/app/states/AuthenticationState.js.coffee
@@ -1,7 +1,7 @@
#= require app/mediators/authenticationMediator
-App = this.App
+App = @App
App.states.AuthenticationState = SC.State.extend {
View
2 app/assets/javascripts/app/states/BrowsingState.js.coffee
@@ -1,6 +1,6 @@
#= require app/mediators/authenticationMediator
-App = this.App
+App = @App
App.states.BrowsingState = SC.State.extend {

0 comments on commit df320dc

Please sign in to comment.
Something went wrong with that request. Please try again.