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
|
147
|
+
nonHtmlLink(link) or remoteLink(link) or noTurbolink(link) or
|
148
|
+
newTabClick(event)
|
145
149
|
|
146
150
|
|
147
151
|
browserSupportsPushState =
|