diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index de9678a4..2a36f739 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -344,15 +344,15 @@ Ox.wrap = function(value, chained) { return value; } }; - Ox.methods(Ox).forEach(function(method) { - if (method[0] == method[0].toLowerCase()) { - wrapper[method] = function() { - var args = Array.prototype.slice.call(arguments), ret; - args.unshift(value); - ret = Ox[method].apply(Ox, args); - return wrapper.chained ? Ox.wrap(ret, true) : ret; - }; - } + Ox.methods(Ox).filter(function(method) { + return method[0] == method[0].toLowerCase(); + }).forEach(function(method) { + wrapper[method] = function() { + var args = Array.prototype.slice.call(arguments), ret; + args.unshift(value); + ret = Ox[method].apply(Ox, args); + return wrapper.chained ? Ox.wrap(ret, true) : ret; + }; }); return wrapper; };