Skip to content

Commit

Permalink
Don't overwrite the prototype to preserve the constructor property.
Browse files Browse the repository at this point in the history
Instead of restoring the property (as suggested in the pull request) this patch uses the existing `merge` function in order to reduce the file size. Fixes #61
  • Loading branch information
fgnass committed Mar 21, 2012
1 parent 682d112 commit ee7b4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spin.js
Expand Up @@ -144,7 +144,7 @@
}; };


Spinner.defaults = {}; Spinner.defaults = {};
Spinner.prototype = { merge(Spinner.prototype, {
spin: function(target) { spin: function(target) {
this.stop(); this.stop();
var self = this; var self = this;
Expand Down Expand Up @@ -227,7 +227,7 @@
opacity: function(el, i, val) { opacity: function(el, i, val) {
if (i < el.childNodes.length) el.childNodes[i].style.opacity = val; if (i < el.childNodes.length) el.childNodes[i].style.opacity = val;
} }
}; });


///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// VML rendering for IE // VML rendering for IE
Expand Down

0 comments on commit ee7b4d5

Please sign in to comment.