Skip to content

Commit ef3e31f

Browse files
committed
remove spaces
1 parent 049f172 commit ef3e31f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/jquery.counter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
var e = $(this);
150150
var data = e.data('counter') || {};
151151
data.interval = parseInt(options.interval || e.attr('data-interval') || '1000', 10);
152-
data.down = ( options.direction || e.attr('data-direction') || 'down') == 'down';
152+
data.down = (options.direction || e.attr('data-direction') || 'down') == 'down';
153153
data.parts = [];
154154
var initial = split(options.initial || e.text(), /([^0-9]+)/);
155155
//WARN: Use attr() no data()
@@ -230,12 +230,12 @@
230230

231231
$.fn.counter = function(method) {
232232
// Method calling logic
233-
if ( methods[method] ) {
234-
return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
235-
} else if ( typeof method === 'object' || ! method ) {
236-
return methods.init.apply( this, arguments );
233+
if (methods[method]) {
234+
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
235+
} else if (typeof method === 'object' || ! method) {
236+
return methods.init.apply(this, arguments);
237237
} else {
238-
$.error( 'Method ' + method + ' does not exist on jQuery.counter' );
238+
$.error('Method ' + method + ' does not exist on jQuery.counter');
239239
}
240240
};
241241

0 commit comments

Comments
 (0)