diff --git a/README.md b/README.md index 2a5c651..ce41486 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Wiselinks works in all major browsers including browsers that do not support HTM Assets change detection Yes, by calculating assets MD5 hash on boot Yes, by parsing document head on every request - No + Yes, manually 30x HTTP redirects processing diff --git a/lib/assets/javascripts/_page.js.coffee b/lib/assets/javascripts/_page.js.coffee index 0a7a536..c7784ae 100644 --- a/lib/assets/javascripts/_page.js.coffee +++ b/lib/assets/javascripts/_page.js.coffee @@ -23,6 +23,9 @@ class Page "statechange" (event, data) -> state = History.getState() + + if (state.data.no_wiselinks) + return if self._template_id_changed(state) self._call(self._reset_state(state)) @@ -105,4 +108,4 @@ class Page window._Wiselinks = {} if window._Wiselinks == undefined -window._Wiselinks.Page = Page \ No newline at end of file +window._Wiselinks.Page = Page diff --git a/wiselinks.gemspec b/wiselinks.gemspec index 6dad7ba..f649e59 100644 --- a/wiselinks.gemspec +++ b/wiselinks.gemspec @@ -27,7 +27,6 @@ Gem::Specification.new do |gem| gem.add_development_dependency 'rake' gem.add_development_dependency 'bundler' gem.add_development_dependency 'sqlite3' - gem.add_development_dependency 'rspec' gem.add_development_dependency 'rspec-rails' gem.add_development_dependency 'factory_girl' gem.add_development_dependency 'faker'