web/static/res/js/incmosaic.js
changeset 124 8d2376eb825c
parent 93 7c37aaa2a8ae
equal deleted inserted replaced
123:82b232c8f305 124:8d2376eb825c
   159 			this.pairImages.push(this.getImageFromUrl(this.listeUrls[1], 1));
   159 			this.pairImages.push(this.getImageFromUrl(this.listeUrls[1], 1));
   160 			this.listeUrls.remove(0);
   160 			this.listeUrls.remove(0);
   161 		} else {
   161 		} else {
   162 			this.imagesLoaded = 1;
   162 			this.imagesLoaded = 1;
   163 			this.pairImages[0] = this.pairImages[1]; // Swap
   163 			this.pairImages[0] = this.pairImages[1]; // Swap
   164 			this.pairImages[1] = this.getImageFromUrl(this.listeUrls[0], 999)
   164 			this.pairImages[1] = this.getImageFromUrl(this.listeUrls[0], 999);
   165 		}
   165 		}
   166 		this.listeUrls.remove(0);
   166 		this.listeUrls.remove(0);
   167 
   167 
   168 		// Todo preload the next image
   168 		// Todo preload the next image
   169 	};
   169 	};
   235 				}
   235 				}
   236 			}
   236 			}
   237 		}
   237 		}
   238 
   238 
   239 		if (!effectsContinue) {
   239 		if (!effectsContinue) {
   240 			if (this.endEffecFunc != undefined && this.endEffecFunc != null) {
   240 			if (this.endEffecFunc !== undefined && this.endEffecFunc !== null) {
   241 				// Call the end callback
   241 				// Call the end callback
   242 				var func = this.endEffecFunc;
   242 				var func = this.endEffecFunc;
   243 				if (!this.loop) {
   243 				if (!this.loop) {
   244 					this.endEffecFunc = null;
   244 					this.endEffecFunc = null;
   245 				}
   245 				}