app/assets/javascripts/nitrolinks/testing.coffee in nitrolinks-rails-0.2.0 vs app/assets/javascripts/nitrolinks/testing.coffee in nitrolinks-rails-0.3.0
- old
+ new
@@ -33,25 +33,13 @@
@listen()
body: ->
select('body')
- markAsLoading: (from)->
- @active = true
- @body().classList.add('testing-visiting')
-
- markAsDoneLoading: ->
- @active = false
- @body().classList.remove('testing-visiting')
-
listen: ->
- eventListen 'nitrolinks:visit', =>
- @markAsLoading('nitrolinks:visit')
-
loads = (e) =>
@loadCount += 1
- @markAsDoneLoading()
@showDebugData()
eventListen 'nitrolinks:load', loads
eventListen 'nitrolinks:load-blank', loads
@@ -66,10 +54,9 @@
whenReady =>
return unless select('#nitro-debugging')
@addToLoaded(@window.location.href)
@showDebugData()
- @markAsDoneLoading()
addToFetched: (url) ->
@addToArrayStored(@fetchLoadKey, url)
addToLoaded: (url) ->