Browse Source

minor change

Nathaniel van Diepen 11 years ago
parent
commit
cf4509b4b2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      omnomirc_www/omnomirc.js

+ 3 - 3
omnomirc_www/omnomirc.js

@@ -19,7 +19,7 @@
     along with OmnomIRC.  If not, see <http://www.gnu.org/licenses/>.
 */
 (function(window,undefined){
-     var OmnomIRC = function(){
+     var OmnomIRC = window.OmnomIRC = (function(){
             var ret = {
                     options: "----------------------------------------|", //40 for future expansion!(and 40 bytes isn't much.) Pipe is a terminator.
                     cookieLoad: proto('cookieLoad'),
@@ -38,11 +38,11 @@
             }
             window.onLoad = this.cookieLoad();
             return ret;
-        },
+        })(),
         proto = function(fn){
             return function(){
                 try{
-                    return _proto[fn].apply(this,arguments);
+                    return _proto[fn].apply(OmnomIRC,arguments);
                 }catch(e){
                     return null;
                 }