From debb8e161c38e9d7890c79efa6e69f94dd1e1c07 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 25 Jul 2012 06:12:09 -0400 Subject: [PATCH] minor changes --- lib/client/viewer.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/client/viewer.js b/lib/client/viewer.js index cb7878c7..4b7dd666 100644 --- a/lib/client/viewer.js +++ b/lib/client/viewer.js @@ -6,20 +6,24 @@ CloudCommander.Viewer = {}; CloudCommander.Viewer.FancyBox = { load: function(){ + var lInit_f = (function(pParent){ + return function(){ + $(".fancybox").fancybox({ + openEffect : 'none', + closeEffect : 'none' + }); + + pParent.set(); + }; + }); + CloudCommander.cssLoad({ src : 'http://fancyapps.com/fancybox/source/jquery.fancybox.css' }); - + CloudCommander.jsload( 'http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js', - function(){ - $(".fancybox").fancybox({ - openEffect : 'none', - closeEffect : 'none' - }); - - this.set(); - }); + lInit_f(this)); }, set: function(){