瀏覽代碼

minor change

Nathaniel van Diepen 11 年之前
父節點
當前提交
cf4509b4b2
共有 1 個文件被更改,包括 3 次插入3 次删除
  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;
                 }