Permalink
Browse files

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.
  • Loading branch information...
1 parent bbdf168 commit dddba62eb0b739c98fb5a179f41f6b141b811f82 @thorstein5 thorstein5 committed Oct 7, 2012
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -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
@@ -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;

0 comments on commit dddba62

Please sign in to comment.