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 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()
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
You can’t perform that action at this time.
0 commit comments