turbolinks 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,6 +133,9 @@ anchoredLink = (link) ->
133
133
  nonHtmlLink = (link) ->
134
134
  link.href.match(/\.[a-z]+(\?.*)?$/g) and not link.href.match(/\.html?(\?.*)?$/g)
135
135
 
136
+ remoteLink = (link) ->
137
+ link.getAttribute('data-remote')?
138
+
136
139
  noTurbolink = (link) ->
137
140
  link.getAttribute('data-no-turbolink')?
138
141
 
@@ -141,7 +144,8 @@ newTabClick = (event) ->
141
144
 
142
145
  ignoreClick = (event, link) ->
143
146
  samePageLink(link) or crossOriginLink(link) or anchoredLink(link) or
144
- nonHtmlLink(link) or noTurbolink(link) or newTabClick(event)
147
+ nonHtmlLink(link) or remoteLink(link) or noTurbolink(link) or
148
+ newTabClick(event)
145
149
 
146
150
 
147
151
  browserSupportsPushState =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbolinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: