From 86501bcf132ad7cceaf0f68ee638fa926ca47ee1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 29 Dec 2010 14:43:37 +0800 Subject: [PATCH] ux/Lightbox.js --- ux/Lightbox.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 70ec9a92e3..539cb918d2 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -45,6 +45,7 @@ Roo.namespace('Roo.ux'); Roo.ux.Lightbox = function(cfg) { + this.imageArray = []; Roo.apply(this,cfg); this.initialize(); } @@ -224,7 +225,9 @@ Roo.apply(Roo.ux.Lightbox.prototype, */ updateImageList: function() { this.updateImageList = Roo.emptyFn; - + if (this.imageArray.length) { + return; + } Roo.each(Roo.DomQuery.select('a[rel^=lightbox]'), function(e) { this.imageArray.push(Roo.get(e)); Roo.get(e).on('click', (function(event, tg, tga,tgb) { -- 2.39.2