From now jquery not necessary for Cloud Commander, so start load get faster

This commit is contained in:
coderaiser 2012-09-03 05:52:28 -04:00
parent b1a02ba767
commit 9a0fb1cc67
4 changed files with 35 additions and 25 deletions

View file

@ -13,6 +13,8 @@ var CloudCommander, $;
/* setting head ie6 - ie8 */
var lUtil = CloudCommander.Util;
lUtil.jqueryLoad();
/* setting function context (this) */
lUtil.bind = function(pFunction, pContext){
return $.proxy(pFunction, pContext);

View file

@ -61,6 +61,8 @@ var CloudCommander, CloudFunc, $;
* @pCallBack - executes, when everything loaded
*/
CloudCommander.Viewer.FancyBox.load = (function(pThis, pCallBack){
Util.jqueryLoad();
var ljsLoad_f = function(){
var lSrc = pThis.dir + 'jquery.fancybox.js';
Util.jsload(lSrc,{