vendor/assets/javascripts/emerson/util.js in emerson-0.0.2 vs vendor/assets/javascripts/emerson/util.js in emerson-0.0.3

- old
+ new

@@ -5,22 +5,13 @@ (function(ns){ // Emerson Extension // -------------------------------------------------------------------------- - // util + // ### Emerson.util module + // * `ns` is a reference to the namespace. + // * `init` is a hook for initializing the module. var util = ns.util = { - // A reference to the namespace. ns : ns, - init : function init() {}, - - // ... - augment : function augment(object, name, fn) { - var original = object[name]; - - object[name] = function() { - var result = (original && original.apply(this, arguments)) || this; - return fn.apply(result, arguments); // closure issue? - } - } + init : function init() {} }; })(Emerson);