diff --git a/src/jquery.inherit/jquery.inherit.js b/src/jquery.inherit/jquery.inherit.js index 129fe0c..1482e5e 100644 --- a/src/jquery.inherit/jquery.inherit.js +++ b/src/jquery.inherit/jquery.inherit.js @@ -60,6 +60,11 @@ function override(base, result, add) { return result; }; + for (var key in prop) { + result[name][key] = prop[key]; + delete prop[key]; + } + } else { result[name] = prop; @@ -112,4 +117,4 @@ $.inheritSelf = function(base, props, staticProps) { }; -})(jQuery); \ No newline at end of file +})(jQuery);