Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Update jquery.counterup.js #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions jquery.counterup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
// Defaults
var settings = $.extend({
'time': 400,
'delay': 10
'delay': 10,
callback: function() {}
}, options);

return this.each(function(){
Expand Down Expand Up @@ -66,6 +67,7 @@
delete $this.data('counterup-nums');
$this.data('counterup-nums', null);
$this.data('counterup-func', null);
$settings.callback.call(this);
}
};
$this.data('counterup-func', f);
Expand All @@ -80,4 +82,4 @@

};

})( jQuery );
})( jQuery );