File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 149
149
var e = $ ( this ) ;
150
150
var data = e . data ( 'counter' ) || { } ;
151
151
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' ;
153
153
data . parts = [ ] ;
154
154
var initial = split ( options . initial || e . text ( ) , / ( [ ^ 0 - 9 ] + ) / ) ;
155
155
//WARN: Use attr() no data()
230
230
231
231
$ . fn . counter = function ( method ) {
232
232
// 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 ) ;
237
237
} else {
238
- $ . error ( 'Method ' + method + ' does not exist on jQuery.counter' ) ;
238
+ $ . error ( 'Method ' + method + ' does not exist on jQuery.counter' ) ;
239
239
}
240
240
} ;
241
241
You can’t perform that action at this time.
0 commit comments