mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Do not start Paloma's engine if current request and last request are the same
This commit is contained in:
parent
ee2e941d6f
commit
efbeb4bfcb
3 changed files with 4 additions and 2 deletions
|
@ -9,6 +9,7 @@ Gem::Specification.new do |s|
|
|||
s.homepage = 'https://github.com/kbparagua/paloma'
|
||||
s.license = 'MIT'
|
||||
|
||||
s.add_development_dependency 'jquery-rails'
|
||||
s.add_development_dependency 'rails', ['~> 3.2.0']
|
||||
s.add_development_dependency 'rake', ['>= 0']
|
||||
s.add_development_dependency 'rspec', ['>= 0']
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
// GO AFTER THE REQUIRES BELOW.
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery.turbolinks
|
||||
//=# require jquery.turbolinks
|
||||
//= require jquery_ujs
|
||||
//= require turbolinks
|
||||
//=# require turbolinks
|
||||
//= require paloma
|
||||
//= require_tree .
|
||||
|
||||
|
|
1
vendor/assets/javascripts/paloma/engine.js
vendored
1
vendor/assets/javascripts/paloma/engine.js
vendored
|
@ -7,6 +7,7 @@
|
|||
|
||||
Engine.prototype.start = function(){
|
||||
if ( !this._request ) return;
|
||||
if ( this._request.id == this.lastRequest().id ) return;
|
||||
|
||||
this._lastRequest = this._request;
|
||||
|
||||
|
|
Loading…
Reference in a new issue