Skip to content

Commit

Permalink
Fix bug when using pugin with multiple elements
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogd committed Sep 7, 2012
1 parent 91cfe9b commit 78813d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.stopwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
};

// if (options) { $.extend(settings, options); }
var settings = $.extend({}, defaults, options);

return this.each(function() {
var $this = $(this),
Expand All @@ -56,6 +55,7 @@
// If the plugin hasn't been initialized yet
if (!data) {
// Setup the stopwatch data
var settings = $.extend({}, defaults, options);
data = settings;
data.active = false;
data.target = $this;
Expand Down

0 comments on commit 78813d1

Please sign in to comment.