spec/dummy/tmp/cache/assets/development/sprockets/b9112e9e2a7d89133fb6b4f15324ff8c in customer_vault-1.2.7 vs spec/dummy/tmp/cache/assets/development/sprockets/b9112e9e2a7d89133fb6b4f15324ff8c in customer_vault-1.2.8
- old
+ new
@@ -1,14 +1,14 @@
{I"
class:EFI"BundledAsset; FI"logical_path; FI"turbolinks.js; TI"
pathname; FI"~/Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee; TI"content_type; FI"application/javascript; FI"
-mtime; Fl+ÀÛTI"length; Fi€aI"digest; F"%6d51386262638b542104f825c3f75b6cI"source; FI"€a(function() {
- var CSRFToken, Click, ComponentUrl, EVENTS, Link, ProgressBar, browserIsntBuggy, browserSupportsCustomEvents, browserSupportsPushState, browserSupportsTurbolinks, bypassOnLoadPopstate, cacheCurrentPage, cacheSize, changePage, clone, constrainPageCacheTo, createDocument, crossOriginRedirect, currentState, enableProgressBar, enableTransitionCache, executeScriptTags, extractTitleAndBody, fetch, fetchHistory, fetchReplacement, historyStateIsDefined, initializeTurbolinks, installDocumentReadyPageEventTriggers, installHistoryChangeHandler, installJqueryAjaxSuccessPageUpdateTrigger, loadedAssets, manuallyTriggerHashChangeForFirefox, pageCache, pageChangePrevented, pagesCached, popCookie, processResponse, progressBar, recallScrollPosition, referer, reflectNewUrl, reflectRedirectedUrl, rememberCurrentState, rememberCurrentUrl, rememberReferer, removeNoscriptTags, requestMethodIsSafe, resetScrollPosition, setAutofocusElement, transitionCacheEnabled, transitionCacheFor, triggerEvent, visit, xhr, _ref,
- __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- __hasProp = {}.hasOwnProperty,
- __slice = [].slice,
- __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
+mtime; Fl+ÀÛTI"length; Fiñ`I"digest; F"%5624902207c6b414d12e02c507d945caI"source; FI"ñ`(function() {
+ var CSRFToken, Click, ComponentUrl, EVENTS, Link, ProgressBar, browserIsntBuggy, browserSupportsCustomEvents, browserSupportsPushState, browserSupportsTurbolinks, bypassOnLoadPopstate, cacheCurrentPage, cacheSize, changePage, clone, constrainPageCacheTo, createDocument, crossOriginRedirect, currentState, enableProgressBar, enableTransitionCache, executeScriptTags, extractTitleAndBody, fetch, fetchHistory, fetchReplacement, historyStateIsDefined, initializeTurbolinks, installDocumentReadyPageEventTriggers, installHistoryChangeHandler, installJqueryAjaxSuccessPageUpdateTrigger, loadedAssets, manuallyTriggerHashChangeForFirefox, pageCache, pageChangePrevented, pagesCached, popCookie, processResponse, progressBar, recallScrollPosition, ref, referer, reflectNewUrl, reflectRedirectedUrl, rememberCurrentState, rememberCurrentUrl, rememberReferer, removeNoscriptTags, requestMethodIsSafe, resetScrollPosition, setAutofocusElement, transitionCacheEnabled, transitionCacheFor, triggerEvent, visit, xhr,
+ indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
+ extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
+ hasProp = {}.hasOwnProperty,
+ slice = [].slice,
+ bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
pageCache = {};
cacheSize = 10;
@@ -166,27 +166,27 @@
return cacheSize = parseInt(size);
}
};
constrainPageCacheTo = function(limit) {
- var cacheTimesRecentFirst, key, pageCacheKeys, _i, _len, _results;
+ var cacheTimesRecentFirst, i, key, len, pageCacheKeys, results;
pageCacheKeys = Object.keys(pageCache);
cacheTimesRecentFirst = pageCacheKeys.map(function(url) {
return pageCache[url].cachedAt;
}).sort(function(a, b) {
return b - a;
});
- _results = [];
- for (_i = 0, _len = pageCacheKeys.length; _i < _len; _i++) {
- key = pageCacheKeys[_i];
+ results = [];
+ for (i = 0, len = pageCacheKeys.length; i < len; i++) {
+ key = pageCacheKeys[i];
if (!(pageCache[key].cachedAt <= cacheTimesRecentFirst[limit])) {
continue;
}
triggerEvent(EVENTS.EXPIRE, pageCache[key]);
- _results.push(delete pageCache[key]);
+ results.push(delete pageCache[key]);
}
- return _results;
+ return results;
};
changePage = function(title, body, csrfToken, runScripts) {
triggerEvent(EVENTS.BEFORE_UNLOAD);
document.title = title;
@@ -205,21 +205,21 @@
triggerEvent(EVENTS.CHANGE);
return triggerEvent(EVENTS.UPDATE);
};
executeScriptTags = function() {
- var attr, copy, nextSibling, parentNode, script, scripts, _i, _j, _len, _len1, _ref, _ref1;
+ var attr, copy, i, j, len, len1, nextSibling, parentNode, ref, ref1, script, scripts;
scripts = Array.prototype.slice.call(document.body.querySelectorAll('script:not([data-turbolinks-eval="false"])'));
- for (_i = 0, _len = scripts.length; _i < _len; _i++) {
- script = scripts[_i];
- if (!((_ref = script.type) === '' || _ref === 'text/javascript')) {
+ for (i = 0, len = scripts.length; i < len; i++) {
+ script = scripts[i];
+ if (!((ref = script.type) === '' || ref === 'text/javascript')) {
continue;
}
copy = document.createElement('script');
- _ref1 = script.attributes;
- for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
- attr = _ref1[_j];
+ ref1 = script.attributes;
+ for (j = 0, len1 = ref1.length; j < len1; j++) {
+ attr = ref1[j];
copy.setAttribute(attr.name, attr.value);
}
if (!script.hasAttribute('async')) {
copy.async = false;
}
@@ -315,12 +315,12 @@
}
return copy;
};
popCookie = function(name) {
- var value, _ref;
- value = ((_ref = document.cookie.match(new RegExp(name + "=(\\w+)"))) != null ? _ref[1].toUpperCase() : void 0) || '';
+ var ref, value;
+ value = ((ref = document.cookie.match(new RegExp(name + "=(\\w+)"))) != null ? ref[1].toUpperCase() : void 0) || '';
document.cookie = name + '=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/';
return value;
};
triggerEvent = function(name, data) {
@@ -343,48 +343,48 @@
};
processResponse = function() {
var assetsChanged, clientOrServerError, doc, extractTrackAssets, intersection, validContent;
clientOrServerError = function() {
- var _ref;
- return (400 <= (_ref = xhr.status) && _ref < 600);
+ var ref;
+ return (400 <= (ref = xhr.status) && ref < 600);
};
validContent = function() {
var contentType;
return ((contentType = xhr.getResponseHeader('Content-Type')) != null) && contentType.match(/^(?:text\/html|application\/xhtml\+xml|application\/xml)(?:;|$)/);
};
extractTrackAssets = function(doc) {
- var node, _i, _len, _ref, _results;
- _ref = doc.querySelector('head').childNodes;
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- node = _ref[_i];
+ var i, len, node, ref, results;
+ ref = doc.querySelector('head').childNodes;
+ results = [];
+ for (i = 0, len = ref.length; i < len; i++) {
+ node = ref[i];
if ((typeof node.getAttribute === "function" ? node.getAttribute('data-turbolinks-track') : void 0) != null) {
- _results.push(node.getAttribute('src') || node.getAttribute('href'));
+ results.push(node.getAttribute('src') || node.getAttribute('href'));
}
}
- return _results;
+ return results;
};
assetsChanged = function(doc) {
var fetchedAssets;
loadedAssets || (loadedAssets = extractTrackAssets(document));
fetchedAssets = extractTrackAssets(doc);
return fetchedAssets.length !== loadedAssets.length || intersection(fetchedAssets, loadedAssets).length !== loadedAssets.length;
};
intersection = function(a, b) {
- var value, _i, _len, _ref, _results;
+ var i, len, ref, results, value;
if (a.length > b.length) {
- _ref = [b, a], a = _ref[0], b = _ref[1];
+ ref = [b, a], a = ref[0], b = ref[1];
}
- _results = [];
- for (_i = 0, _len = a.length; _i < _len; _i++) {
- value = a[_i];
- if (__indexOf.call(b, value) >= 0) {
- _results.push(value);
+ results = [];
+ for (i = 0, len = a.length; i < len; i++) {
+ value = a[i];
+ if (indexOf.call(b, value) >= 0) {
+ results.push(value);
}
}
- return _results;
+ return results;
};
if (!clientOrServerError() && validContent()) {
doc = createDocument(xhr.responseText);
if (doc && !assetsChanged(doc)) {
return doc;
@@ -426,12 +426,12 @@
doc.body = doc.querySelector('body');
return doc;
};
ComponentUrl = (function() {
- function ComponentUrl(_at_original) {
- this.original = _at_original != null ? _at_original : document.location.href;
+ function ComponentUrl(original1) {
+ this.original = original1 != null ? original1 : document.location.href;
if (this.original.constructor === ComponentUrl) {
return this.original;
}
this._parse();
}
@@ -451,13 +451,13 @@
ComponentUrl.prototype.crossOrigin = function() {
return this.origin !== (new ComponentUrl).origin;
};
ComponentUrl.prototype._parse = function() {
- var _ref;
+ var ref;
(this.link != null ? this.link : this.link = document.createElement('a')).href = this.original;
- _ref = this.link, this.href = _ref.href, this.protocol = _ref.protocol, this.host = _ref.host, this.hostname = _ref.hostname, this.port = _ref.port, this.pathname = _ref.pathname, this.search = _ref.search, this.hash = _ref.hash;
+ ref = this.link, this.href = ref.href, this.protocol = ref.protocol, this.host = ref.host, this.hostname = ref.hostname, this.port = ref.port, this.pathname = ref.pathname, this.search = ref.search, this.hash = ref.hash;
this.origin = [this.protocol, '//', this.hostname].join('');
if (this.port.length !== 0) {
this.origin += ":" + this.port;
}
this.relative = [this.pathname, this.search, this.hash].join('');
@@ -466,27 +466,27 @@
return ComponentUrl;
})();
- Link = (function(_super) {
- __extends(Link, _super);
+ Link = (function(superClass) {
+ extend(Link, superClass);
Link.HTML_EXTENSIONS = ['html'];
Link.allowExtensions = function() {
- var extension, extensions, _i, _len;
- extensions = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- for (_i = 0, _len = extensions.length; _i < _len; _i++) {
- extension = extensions[_i];
+ var extension, extensions, i, len;
+ extensions = 1 <= arguments.length ? slice.call(arguments, 0) : [];
+ for (i = 0, len = extensions.length; i < len; i++) {
+ extension = extensions[i];
Link.HTML_EXTENSIONS.push(extension);
}
return Link.HTML_EXTENSIONS;
};
- function Link(_at_link) {
- this.link = _at_link;
+ function Link(link1) {
+ this.link = link1;
if (this.link.constructor === Link) {
return this.link;
}
this.original = this.link.href;
this.originalElement = this.link;
@@ -534,12 +534,12 @@
Click.handle = function(event) {
return new Click(event);
};
- function Click(_at_event) {
- this.event = _at_event;
+ function Click(event1) {
+ this.event = event1;
if (this.event.defaultPrevented) {
return;
}
this._extractLink();
if (this._validForTurbolinks()) {
@@ -576,13 +576,13 @@
ProgressBar = (function() {
var className;
className = 'turbolinks-progress-bar';
- function ProgressBar(_at_elementSelector) {
- this.elementSelector = _at_elementSelector;
- this._trickle = __bind(this._trickle, this);
+ function ProgressBar(elementSelector) {
+ this.elementSelector = elementSelector;
+ this._trickle = bind(this._trickle, this);
this.value = 0;
this.content = '';
this.speed = 300;
this.opacity = 0.99;
this.install();
@@ -604,12 +604,12 @@
ProgressBar.prototype.start = function() {
return this.advanceTo(5);
};
ProgressBar.prototype.advanceTo = function(value) {
- var _ref;
- if ((value > (_ref = this.value) && _ref <= 100)) {
+ var ref;
+ if ((value > (ref = this.value) && ref <= 100)) {
this.value = value;
this._updateStyle();
if (this.value === 100) {
return this._stopTrickle();
} else if (this.value > 0) {
@@ -717,12 +717,12 @@
});
}
};
installHistoryChangeHandler = function(event) {
- var cachedPage, _ref;
- if ((_ref = event.state) != null ? _ref.turbolinks : void 0) {
+ var cachedPage, ref;
+ if ((ref = event.state) != null ? ref.turbolinks : void 0) {
if (cachedPage = pageCache[(new ComponentUrl(event.state.url)).absolute]) {
cacheCurrentPage();
return fetchHistory(cachedPage);
} else {
return visit(event.target.location.href);
@@ -747,11 +747,11 @@
browserSupportsPushState = window.history && window.history.pushState && window.history.replaceState && historyStateIsDefined;
browserIsntBuggy = !navigator.userAgent.match(/CriOS\//);
- requestMethodIsSafe = (_ref = popCookie('request_method')) === 'GET' || _ref === '';
+ requestMethodIsSafe = (ref = popCookie('request_method')) === 'GET' || ref === '';
browserSupportsTurbolinks = browserSupportsPushState && browserIsntBuggy && requestMethodIsSafe;
browserSupportsCustomEvents = document.addEventListener && document.createEvent;
@@ -778,6 +778,6 @@
supported: browserSupportsTurbolinks,
EVENTS: clone(EVENTS)
};
}).call(this);
-; TI"required_assets_digest; F"%0c6e49f7a06d98447d7f8b6896a8fd5aI"
_version; F"%7015acab0e7ee10d673b8d49cecfb54b
+; TI"required_assets_digest; F"%80f037d3dbd2b7d0a207dabebf383e65I"
_version; F"%7015acab0e7ee10d673b8d49cecfb54b
\ No newline at end of file