Skip to content

Commit

Permalink
v2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
codecomputerlove committed Sep 27, 2011
1 parent 8ff7b87 commit 34be394
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 11 deletions.
15 changes: 10 additions & 5 deletions README.md
Expand Up @@ -18,15 +18,20 @@ It'd be fantastic to see how you have implemented PhotoSwipe on your site! We're



Latest Release v2.1.3
Latest Release v2.1.4
---------------------
[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-2.1.3.zip)
[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-2.1.4.zip)

**Changes for 2.1.3**
**Changes for 2.1.4**

- Fixed issue with Android not being picked up correctly (thanks bgz)
- Fixed issue when closing PhotoSwipe immediately after opening but before an image has loaded



**Important notes about the examples and Internet Explorer**

The majority of the bundled examples supplied with PhotoSwipe are running the optimised non-jQuery version. These examples will error on Internet Explorer. This is by design. They will work if you use the jQuery version of PhotoSwipe. Please read the "Getting Started" section below for more information regarding the different implementations of PhotoSwipe.

- Fixed issues with IE 8


**Important notes about v2**
Expand Down
1 change: 1 addition & 0 deletions build.cmd
@@ -1,2 +1,3 @@
cls
call tools\apache-ant-1.8.2\bin\ant
IF NOT %ERRORLEVEL% == 0 pause
4 changes: 2 additions & 2 deletions build.number
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Thu Sep 22 10:35:00 BST 2011
build.number=6
#Tue Sep 27 15:05:52 BST 2011
build.number=9
2 changes: 1 addition & 1 deletion build.properties
Expand Up @@ -5,7 +5,7 @@
project.description = PhotoSwipe
project.src.dir = src

project.build.version = 2.1.3
project.build.version = 2.1.4
project.build.year = 2011

project.build.workdir = work
Expand Down
1 change: 1 addition & 0 deletions build.sh
@@ -1,2 +1,3 @@
#!/bin/bash
clear
tools/apache-ant-1.8.2/bin/ant
4 changes: 2 additions & 2 deletions src/cache.class.js
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license
// version: %%version%%

(function(window, klass, Util, Image){
(function(window, klass, Util){


Util.registerNamespace('Code.PhotoSwipe.Cache');
Expand Down Expand Up @@ -61,7 +61,7 @@
caption = this.settings.getImageCaption(image);
metaData = this.settings.getImageMetaData(image);

this.images.push(new Image.ImageClass(image, src, caption, metaData));
this.images.push(new PhotoSwipe.Image.ImageClass(image, src, caption, metaData));

}

Expand Down
7 changes: 6 additions & 1 deletion src/carousel.class.js
Expand Up @@ -35,7 +35,12 @@
*/
dispose: function(){

var prop;
var prop, i, j;

for (i=0, j=this.cache.images.length; i<j; i++){
Util.Events.remove(this.cache.images[i], PhotoSwipe.Image.EventTypes.onLoad, this.imageLoadHandler);
Util.Events.remove(this.cache.images[i], PhotoSwipe.Image.EventTypes.onError, this.imageErrorHandler);
}

this.stopSlideshow();
Util.Animation.stop(this.el);
Expand Down
7 changes: 7 additions & 0 deletions src/change.log
Expand Up @@ -79,4 +79,11 @@ Initial release
- Fixed issues with IE 8


2.1.4 27.09.11 - Ste Brennan
----------------------------

- Fixed issue when closing PhotoSwipe immediately after opening but before an image has loaded




4 changes: 4 additions & 0 deletions src/photoswipe.class.js
Expand Up @@ -477,6 +477,10 @@
throw "Code.PhotoSwipe.PhotoSwipeClass.hide: PhotoSwipe instance is already hidden";
}

if (!Util.isNothing(this.hiding)){
return;
}

this.destroyZoomPanRotate();

this.removeEventHandlers();
Expand Down

0 comments on commit 34be394

Please sign in to comment.