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.