From 0c451c79fc9bdde3aec5de2160904216a1da3499 Mon Sep 17 00:00:00 2001 From: Philippe Vaucher Date: Mon, 13 Jan 2014 11:36:45 +0100 Subject: [PATCH 1/2] Clean whitespace in example --- test/index3.html | 52 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/test/index3.html b/test/index3.html index b500e6c..38c5949 100644 --- a/test/index3.html +++ b/test/index3.html @@ -17,32 +17,32 @@ var relative_y = y - this.y; return Math.sqrt(relative_x*relative_x + relative_y*relative_y) <= this.r; } - + function isInRectangle(x, y) { return (this.x1 <= x && x <= this.x2) && (this.y1 <= y && y<= this.y2); } - + function getCircleCenter() { return {x: this.x, y: this.y}; } - + function getRectangleCenter() { return {x: (this.x2+this.x1)/2, y: (this.y2+this.y1)/2}; } - + var objects = [ {x: 100, y: 100, r: 50, isInObject: isInCircle, title: 'big circle', getCenter: getCircleCenter }, {x: 150, y: 250, r: 35, isInObject: isInCircle, title: 'middle circle', getCenter: getCircleCenter }, {x: 500, y: 300, r: 10, isInObject: isInCircle, title: 'small circle', getCenter: getCircleCenter }, {x1: 200, y1: 400, x2: 300, y2: 500, isInObject: isInRectangle, title: 'rectangle', getCenter: getRectangleCenter } ] - + function whereIam(x, y) { for (var i=0; i - +
- -
+ +
From 306aecff9e93ab7845dbc9da3b5fc799a4a8ba93 Mon Sep 17 00:00:00 2001 From: Philippe Vaucher Date: Wed, 30 Jul 2014 12:11:04 +0200 Subject: [PATCH 2/2] Don't trigger onFinishLoad before every operations are done --- jquery.iviewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.iviewer.js b/jquery.iviewer.js index 03d9a8d..a3edae6 100644 --- a/jquery.iviewer.js +++ b/jquery.iviewer.js @@ -446,12 +446,12 @@ $.widget( "ui.iviewer", $.ui.mouse, { this.set_zoom(this.options.zoom, true); } - this._trigger('onFinishLoad', 0, src); - if(this.options.fill_container) { this.fill_container(true); } + + this._trigger('onFinishLoad', 0, src); }, /**