1
0
Fork 0
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:
kbparagua 2016-03-02 12:01:19 +08:00
parent ee2e941d6f
commit efbeb4bfcb
3 changed files with 4 additions and 2 deletions

View file

@ -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']

View file

@ -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 .

View file

@ -7,6 +7,7 @@
Engine.prototype.start = function(){
if ( !this._request ) return;
if ( this._request.id == this.lastRequest().id ) return;
this._lastRequest = this._request;