Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't overwrite the prototype to preserve the constructor property.

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...
commit ee7b4d5abbf6fa801eb13b936ad25d8b3dcecdf3 1 parent 682d112
@fgnass authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spin.js
View
4 spin.js
@@ -144,7 +144,7 @@
};
Spinner.defaults = {};
- Spinner.prototype = {
+ merge(Spinner.prototype, {
spin: function(target) {
this.stop();
var self = this;
@@ -227,7 +227,7 @@
opacity: function(el, i, val) {
if (i < el.childNodes.length) el.childNodes[i].style.opacity = val;
}
- };
+ });
/////////////////////////////////////////////////////////////////////////
// VML rendering for IE
Please sign in to comment.
Something went wrong with that request. Please try again.