Browse Source

Move TRANSITION over new RATCHET global

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

16
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)
* ======================================================================== */
/* global _gaq, TRANSITION */
/* global _gaq */
!(function () {
'use strict';
@ -520,11 +520,11 @@
});
}
TRANSITION(activeDom.cloneNode(true),
transitionFromObj.transition,
function() {
triggerStateChange();
});
window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition,
function() {
triggerStateChange();
});
PUSH.id = id;
@ -602,7 +602,7 @@
document.title = data.title;
}
TRANSITION(data.contents, options.transition, function () {
window.RATCHET.transition(data.contents, options.transition, function () {
cacheReplace({
id : options.id || +new Date(),
url : data.url,

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

16
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)
* ======================================================================== */
/* global _gaq, TRANSITION */
/* global _gaq */
!(function () {
'use strict';
@ -520,11 +520,11 @@
});
}
TRANSITION(activeDom.cloneNode(true),
transitionFromObj.transition,
function() {
triggerStateChange();
});
window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition,
function() {
triggerStateChange();
});
PUSH.id = id;
@ -602,7 +602,7 @@
document.title = data.title;
}
TRANSITION(data.contents, options.transition, function () {
window.RATCHET.transition(data.contents, options.transition, function () {
cacheReplace({
id : options.id || +new Date(),
url : data.url,

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

File diff suppressed because one or more lines are too long

14
js/push.js

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

2
js/transitions.js

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

Loading…
Cancel
Save