Browse Source

Move TRANSITION over new RATCHET global

pull/684/head
Nate Delage 10 years ago
parent
commit
004ee04686
  1. 8
      dist/js/ratchet.js
  2. 2
      dist/js/ratchet.min.js
  3. 8
      docs/dist/js/ratchet.js
  4. 2
      docs/dist/js/ratchet.min.js
  5. 6
      js/push.js
  6. 2
      js/transitions.js

8
dist/js/ratchet.js vendored

@ -348,7 +348,7 @@
} }
}; };
window.TRANSITION = TRANSITION; window.RATCHET.transition = TRANSITION;
}()); }());
/* ======================================================================== /* ========================================================================
@ -360,7 +360,7 @@
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
/* global _gaq, TRANSITION */ /* global _gaq */
!(function () { !(function () {
'use strict'; 'use strict';
@ -520,7 +520,7 @@
}); });
} }
TRANSITION(activeDom.cloneNode(true), window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition, transitionFromObj.transition,
function() { function() {
triggerStateChange(); triggerStateChange();
@ -602,7 +602,7 @@
document.title = data.title; document.title = data.title;
} }
TRANSITION(data.contents, options.transition, function () { window.RATCHET.transition(data.contents, options.transition, function () {
cacheReplace({ cacheReplace({
id : options.id || +new Date(), id : options.id || +new Date(),
url : data.url, url : data.url,

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

8
docs/dist/js/ratchet.js vendored

@ -348,7 +348,7 @@
} }
}; };
window.TRANSITION = TRANSITION; window.RATCHET.transition = TRANSITION;
}()); }());
/* ======================================================================== /* ========================================================================
@ -360,7 +360,7 @@
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
/* global _gaq, TRANSITION */ /* global _gaq */
!(function () { !(function () {
'use strict'; 'use strict';
@ -520,7 +520,7 @@
}); });
} }
TRANSITION(activeDom.cloneNode(true), window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition, transitionFromObj.transition,
function() { function() {
triggerStateChange(); triggerStateChange();
@ -602,7 +602,7 @@
document.title = data.title; document.title = data.title;
} }
TRANSITION(data.contents, options.transition, function () { window.RATCHET.transition(data.contents, options.transition, function () {
cacheReplace({ cacheReplace({
id : options.id || +new Date(), id : options.id || +new Date(),
url : data.url, url : data.url,

2
docs/dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

6
js/push.js

@ -7,7 +7,7 @@
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
/* global _gaq, TRANSITION */ /* global _gaq */
!(function () { !(function () {
'use strict'; 'use strict';
@ -167,7 +167,7 @@
}); });
} }
TRANSITION(activeDom.cloneNode(true), window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition, transitionFromObj.transition,
function() { function() {
triggerStateChange(); triggerStateChange();
@ -249,7 +249,7 @@
document.title = data.title; document.title = data.title;
} }
TRANSITION(data.contents, options.transition, function () { window.RATCHET.transition(data.contents, options.transition, function () {
cacheReplace({ cacheReplace({
id : options.id || +new Date(), id : options.id || +new Date(),
url : data.url, url : data.url,

2
js/transitions.js

@ -141,5 +141,5 @@
} }
}; };
window.TRANSITION = TRANSITION; window.RATCHET.transition = TRANSITION;
}()); }());

Loading…
Cancel
Save