Permalink
Browse files

Preventing getDocument error in 1.4.5

1 parent eae91f3 commit 902b980cdc9d8bcd84ddc52e123c989f05778483 @SitePenDavidWalsh SitePenDavidWalsh committed Mar 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/LazyLoad.js
View
@@ -46,7 +46,7 @@ var LazyLoad = new Class({
var axis = (this.options.mode == "vertical" ? "y": "x");
// Calculate the offset
- var offset = (this.container != document.body ? this.container : "");
+ var offset = (this.container != window && this.container != document.body ? this.container : "");
// Find elements remember and hold on to
this.elements = this.elements.filter(function(el) {

0 comments on commit 902b980

Please sign in to comment.