From 90bc4fb59ef56b9c0e5c30fb18e9cafa86a1b6a2 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 1 Nov 2011 14:45:47 +0000 Subject: [PATCH] fix a layer bug --- source/Ox.UI/js/Window/Ox.Layer.js | 2 +- source/Ox/js/Core.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {