From 3fcc7b5949fcf9c9220ff8f2a5e5e1f22885465f Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Mon, 26 Sep 2011 21:18:56 +0200 Subject: [PATCH] Use correct name for function state for addScript/addStyle in js --- core/js/js.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 9d2b20d10f0..a75e1d41f60 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -83,8 +83,8 @@ OC={ */ addScript:function(app,script,ready){ var path=OC.filePath(app,'js',script+'.js'); - if(OC.addStyle.loaded.indexOf(path)==-1){ - OC.addStyle.loaded.push(path); + if(OC.addScript.loaded.indexOf(path)==-1){ + OC.addScript.loaded.push(path); if(ready){ $.getScript(path,ready); }else{ @@ -103,8 +103,8 @@ OC={ */ addStyle:function(app,style){ var path=OC.filePath(app,'css',style+'.css'); - if(OC.addScript.loaded.indexOf(path)==-1){ - OC.addScript.loaded.push(path); + if(OC.addStyle.loaded.indexOf(path)==-1){ + OC.addStyle.loaded.push(path); var style=$(''); $('head').append(style); } -- 2.39.5