turbolinks 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: