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>
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();
});

6
docs/dist/js/ratchet.js vendored

@ -326,12 +326,12 @@
// </div>
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();
});

2
js/push.js

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

4
js/transitions.js

@ -119,12 +119,12 @@
// </div>
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) {

Loading…
Cancel
Save