From f6a7d0a05938e2e180cb32fd8375b3948ffb7211 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 26 Jun 2012 03:14:35 +0200 Subject: [PATCH] remove unneccessary closure --- source/Ox/js/Core.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index a279738c..bf2685a9 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -74,17 +74,15 @@ Some conventions: // todo: check http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ // also see https://github.com/tlrobinson/narwhal/blob/master/lib/util.js -(function(global) { - /*@ - Ox The `Ox` object - See `Ox.wrap` for details. - (value) -> wrapped value - value <*> Any value - @*/ - global.Ox = function(value) { - return Ox.wrap(value); - }; -})(this); +/*@ +Ox The `Ox` object + See `Ox.wrap` for details. + (value) -> wrapped value + value <*> Any value +@*/ +this.Ox = function(value) { + return Ox.wrap(value); +}; /*@ Ox.Break Breaks from `Ox.forEach` and `Ox.loop`