pjax_rails 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ module Pjax
44
44
  # end
45
45
  #
46
46
  def prevent_pjax!
47
- raise PjaxUnsupported if pjax_request?
47
+ raise Pjax::Unsupported if pjax_request?
48
48
  end
49
49
 
50
50
  def strip_pjax_param
@@ -200,14 +200,14 @@ function pjax(options) {
200
200
 
201
201
  var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options])
202
202
  if (textStatus !== 'abort' && allowed)
203
- window.location = container.url
203
+ window.location.replace(container.url)
204
204
  }
205
205
 
206
206
  options.success = function(data, status, xhr) {
207
207
  var container = extractContainer(data, xhr, options)
208
208
 
209
209
  if (!container.contents) {
210
- window.location = container.url
210
+ window.location.replace(container.url)
211
211
  return
212
212
  }
213
213
 
@@ -381,7 +381,7 @@ function onPjaxPopstate(event) {
381
381
  // scroll position.
382
382
  container[0].offsetHeight
383
383
  } else {
384
- window.location = location.href
384
+ window.location.replace(location.href)
385
385
  }
386
386
  }
387
387
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pjax_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-03 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails