From caec77b63f63625d457819e5e3afb823a811ae0c Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 15 Dec 2010 12:36:13 +0100 Subject: [PATCH] remove function, which uses getters and setters --- plugins/pilot/util.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/plugins/pilot/util.js b/plugins/pilot/util.js index e0cd4bb3..7fed5068 100644 --- a/plugins/pilot/util.js +++ b/plugins/pilot/util.js @@ -586,33 +586,6 @@ exports.clone = function(object, deep) { return object; }; - -/** - * Helper method for extending one object with another - * Copies all properties from source to target. Returns the extended target - * object. - * Taken from John Resig, http://ejohn.org/blog/javascript-getters-and-setters/. - */ -exports.mixin = function(a, b) { - for (var i in b) { - var g = b.__lookupGetter__(i); - var s = b.__lookupSetter__(i); - - if (g || s) { - if (g) { - a.__defineGetter__(i, g); - } - if (s) { - a.__defineSetter__(i, s); - } - } else { - a[i] = b[i]; - } - } - - return a; -}; - /** * Basically taken from Sproutcore. * Replaces the count items from idx with objects.