From 1a890e454ee478f0d9d425fb8ce4cc67d3ee8c61 Mon Sep 17 00:00:00 2001 From: "Christian G. Warden" Date: Wed, 15 Feb 2012 20:48:14 -0800 Subject: [PATCH] Make it clearer that gg is an object not a function Wrap the anonymous function which is invoked immediately and returns the object assinged to gg in parentheses to make it clearer that gg is an object not a function. --- polychart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polychart.js b/polychart.js index 64a10c8..cb4fe33 100644 --- a/polychart.js +++ b/polychart.js @@ -2,7 +2,7 @@ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 */ -var gg = function() { +var gg = (function() { var gg = gg || {}; var u = u || {}; var console = console || {"log":function() { @@ -3013,5 +3013,5 @@ var gg = function() { }; packageFunction(gg, gg); return gg -}(); +}());