Browse Source

Satisfy the linter

pull/684/head
Nate Delage 10 years ago
parent
commit
9217aeeab5
  1. 6
      dist/js/ratchet.js
  2. 6
      docs/dist/js/ratchet.js
  3. 2
      js/push.js
  4. 4
      js/transitions.js

6
dist/js/ratchet.js vendored

@ -326,12 +326,12 @@
// </div> // </div>
var TRANSITION = function (contents, transition, complete) { 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'); var div = document.createElement('div');
div.innerHTML = contents; div.innerHTML = contents;
contents = div.childNodes[0]; contents = div.childNodes[0];
} else { } else {
contents = contents.cloneNode(true) contents = contents.cloneNode(true);
} }
if (transition) { if (transition) {
@ -522,7 +522,7 @@
window.RATCHET.transition(activeDom.cloneNode(true), window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition, transitionFromObj.transition,
function() { function () {
triggerStateChange(); triggerStateChange();
}); });

6
docs/dist/js/ratchet.js vendored

@ -326,12 +326,12 @@
// </div> // </div>
var TRANSITION = function (contents, transition, complete) { 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'); var div = document.createElement('div');
div.innerHTML = contents; div.innerHTML = contents;
contents = div.childNodes[0]; contents = div.childNodes[0];
} else { } else {
contents = contents.cloneNode(true) contents = contents.cloneNode(true);
} }
if (transition) { if (transition) {
@ -522,7 +522,7 @@
window.RATCHET.transition(activeDom.cloneNode(true), window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition, transitionFromObj.transition,
function() { function () {
triggerStateChange(); triggerStateChange();
}); });

2
js/push.js

@ -169,7 +169,7 @@
window.RATCHET.transition(activeDom.cloneNode(true), window.RATCHET.transition(activeDom.cloneNode(true),
transitionFromObj.transition, transitionFromObj.transition,
function() { function () {
triggerStateChange(); triggerStateChange();
}); });

4
js/transitions.js

@ -119,12 +119,12 @@
// </div> // </div>
var TRANSITION = function (contents, transition, complete) { 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'); var div = document.createElement('div');
div.innerHTML = contents; div.innerHTML = contents;
contents = div.childNodes[0]; contents = div.childNodes[0];
} else { } else {
contents = contents.cloneNode(true) contents = contents.cloneNode(true);
} }
if (transition) { if (transition) {

Loading…
Cancel
Save