Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixes build errors and removes thumbs.db files #411

Merged
merged 1 commit into from

2 participants

@thorstein5

Fixes 4 "errors" introduced in pull request #351 and #397 reported by
JSLint - errors which causes the build script to fail, and cleans up
unnecessary Windows specific Thumbs.db files first introduced in pull
request #345.

@thorstein5 thorstein5 Fixes build errors and removes thumbs.db files
Fixes 4 "errors" introduced in pull request #351 and #397 reported by
JSLint  - errors which causes the build script to fail, and cleans up
unnecessary Windows specific Thumbs.db files first introduced in pull
request #345.
dddba62
@billinghamj billinghamj merged commit 6600d3e into dimsemenov:master
@billinghamj

Thanks very much for this. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 7, 2012
  1. @thorstein5

    Fixes build errors and removes thumbs.db files

    thorstein5 authored
    Fixes 4 "errors" introduced in pull request #351 and #397 reported by
    JSLint  - errors which causes the build script to fail, and cleans up
    unnecessary Windows specific Thumbs.db files first introduced in pull
    request #345.
This page is out of date. Refresh to see the latest.
View
BIN  src/assets/Thumbs.db
Binary file not shown
View
BIN  src/examples/images/Thumbs.db
Binary file not shown
View
BIN  src/examples/images/full/Thumbs.db
Binary file not shown
View
BIN  src/examples/images/thumb/Thumbs.db
Binary file not shown
View
5 src/image.class.js
@@ -33,8 +33,9 @@
this.shrinkImage();
- if (!Util.isNothing(this.imageEl))
- this.imageEl.onload = null;
+ if (!Util.isNothing(this.imageEl)){
+ this.imageEl.onload = null;
+ }
for (prop in this) {
if (Util.objectHasProperty(this, prop)) {
View
5 src/photoswipe.class.js
@@ -476,7 +476,7 @@
Util.Events.remove(window.document, 'keydown', this.keyDownHandler);
}
- if (this.isBackEventSupported && this.settings.backButtonHideEnabled && this.windowHashChangeHandler!=null){
+ if (this.isBackEventSupported && this.settings.backButtonHideEnabled && this.windowHashChangeHandler !== null){
Util.Events.remove(window, 'hashchange', this.windowHashChangeHandler);
}
@@ -814,8 +814,9 @@
onDocumentOverlayFadeIn: function(e){
window.setTimeout(function(){
- if (Util.isNothing(this.settings))
+ if (Util.isNothing(this.settings)){
return;
+ }
var el = (this.settings.target === window) ? window.document.body : this.settings.target;
Something went wrong with that request. Please try again.