diff --git a/dist/js/ratchet.js b/dist/js/ratchet.js index ee452a3..405256d 100644 --- a/dist/js/ratchet.js +++ b/dist/js/ratchet.js @@ -326,12 +326,12 @@ // var TRANSITION = function (contents, transition, complete) { - if(typeof(contents) === 'string' || contents instanceof String) { + if (typeof(contents) === 'string' || contents instanceof String) { var div = document.createElement('div'); div.innerHTML = contents; contents = div.childNodes[0]; } else { - contents = contents.cloneNode(true) + contents = contents.cloneNode(true); } if (transition) { @@ -522,7 +522,7 @@ window.RATCHET.transition(activeDom.cloneNode(true), transitionFromObj.transition, - function() { + function () { triggerStateChange(); }); diff --git a/docs/dist/js/ratchet.js b/docs/dist/js/ratchet.js index ee452a3..405256d 100644 --- a/docs/dist/js/ratchet.js +++ b/docs/dist/js/ratchet.js @@ -326,12 +326,12 @@ // var TRANSITION = function (contents, transition, complete) { - if(typeof(contents) === 'string' || contents instanceof String) { + if (typeof(contents) === 'string' || contents instanceof String) { var div = document.createElement('div'); div.innerHTML = contents; contents = div.childNodes[0]; } else { - contents = contents.cloneNode(true) + contents = contents.cloneNode(true); } if (transition) { @@ -522,7 +522,7 @@ window.RATCHET.transition(activeDom.cloneNode(true), transitionFromObj.transition, - function() { + function () { triggerStateChange(); }); diff --git a/js/push.js b/js/push.js index 57d3aec..a3a5451 100644 --- a/js/push.js +++ b/js/push.js @@ -169,7 +169,7 @@ window.RATCHET.transition(activeDom.cloneNode(true), transitionFromObj.transition, - function() { + function () { triggerStateChange(); }); diff --git a/js/transitions.js b/js/transitions.js index 20e7c66..9b8fcc1 100644 --- a/js/transitions.js +++ b/js/transitions.js @@ -119,12 +119,12 @@ // var TRANSITION = function (contents, transition, complete) { - if(typeof(contents) === 'string' || contents instanceof String) { + if (typeof(contents) === 'string' || contents instanceof String) { var div = document.createElement('div'); div.innerHTML = contents; contents = div.childNodes[0]; } else { - contents = contents.cloneNode(true) + contents = contents.cloneNode(true); } if (transition) {