Skip to content

Commit

Permalink
Updated spacing for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
stvwhtly committed May 26, 2015
1 parent 6987d14 commit e041bae
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions jquery.teletype.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
}
current.position = 0;
current.string = settings.text[current.index];
if (typeof(settings.callbackNext) == 'function') {
settings.callbackNext(current, object);
}
if ( typeof( settings.callbackNext ) == 'function' ) {
settings.callbackNext( current, object );
}
return true;
};
var type = function() {
Expand Down Expand Up @@ -66,7 +66,7 @@
}
} else if ( letter == '\\' ) {
var nextChar = current.string.substr( current.position + 1, 1 );
if ( nextChar == 'n' ) {
if ( nextChar == 'n' ) {
current.position++;
letter = '<br />';
}
Expand All @@ -89,9 +89,9 @@
}, settings.delay );
}
}
if (typeof(settings.callbackType) == 'function') {
settings.callbackType(letter, current, object);
}
if ( typeof( settings.callbackType ) == 'function' ) {
settings.callbackType( letter, current, object );
}
};
var backspace = function( stop ) {
if ( !stop ) {
Expand Down Expand Up @@ -149,7 +149,7 @@
prefix: '',
loop: 0,
humanise: true,
callbackNext: null,
callbackType: null
callbackNext: null,
callbackType: null
};
}( jQuery ) );

0 comments on commit e041bae

Please sign in to comment.