diff --git a/source/Ox.UI/js/Window/Ox.Layer.js b/source/Ox.UI/js/Window/Ox.Layer.js index e6a5a99d..fff396d3 100644 --- a/source/Ox.UI/js/Window/Ox.Layer.js +++ b/source/Ox.UI/js/Window/Ox.Layer.js @@ -24,7 +24,6 @@ Ox.Layer = function(options, self) { }); function click() { - Ox.print('CLICK!!!!!!!') that.triggerEvent('click').removeElement(); } @@ -48,6 +47,7 @@ Ox.Layer = function(options, self) { Ox.UI.$window.bind({mouseup: mouseup}); } that.appendTo(Ox.UI.$body); + return that; } return that; diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index b338f206..5b0e7a4a 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -110,7 +110,7 @@ Ox.load = function() { if (!isObject) { modules[arguments[0]] = Ox.isObject(arguments[1]) ? arguments[1] : {}; } - length = Ox.len(modules) + length = Ox.len(modules); Ox.forEach(modules, function(options, module) { Ox.loadFile(Ox.PATH + 'Ox.' + module + '/Ox.' + module + '.js', function() { Ox.load[module](options, function(s) {