Permalink
Browse files

Removing initalization mutator compatibility

  • Loading branch information...
1 parent 365f961 commit eaba6e5c11a88b1df46a438db245e3d9c70e11a0 @anutron anutron committed Apr 23, 2009
Showing with 8 additions and 14 deletions.
  1. +8 −14 Source/Class/Class.Binds.js
@@ -13,18 +13,12 @@ Class.Mutators.Binds = function(binds){
return binds;
};
-(function(){
- var orig = Class.Mutators.initialize;
-
- Class.Mutators.initialize = function(initialize){
- if (orig) orig.apply(Class.Mutators, initialize);
- return function(){
- $splat(this.Binds).each(function(name){
- var original = this[name];
- if (original) this[name] = original.bind(this);
- }, this);
- return initialize.apply(this, arguments);
- };
-
+Class.Mutators.initialize = function(initialize){
+ return function(){
+ $splat(this.Binds).each(function(name){
+ var original = this[name];
+ if (original) this[name] = original.bind(this);
+ }, this);
+ return initialize.apply(this, arguments);
};
-})();
+};

0 comments on commit eaba6e5

Please sign in to comment.