Open tmlee opened 11 years ago
I get an error
Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
https://github.com/kudago/waterfall/blob/master/jquery.waterfall.js#L564
me too.
I'm getting the same error.
Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
https://github.com/kudago/waterfall/blob/master/jquery.waterfall.js#L960
I figured out my error issue
My theme file had my concatenated script loading in the head along with jQuery. Once I moved the files to the footer there was no error. I assume it's because the scripts were blocking the DOM from finish loading so once the scripts fired there wasn't a body
tag that https://github.com/kudago/waterfall/blob/master/jquery.waterfall.js#L960 was referencing since the DOM was still loading.
Probably not specific to this plugin, is anyone getting a
null
returned from callingdocument.defaultView.getComputedStyle
? https://github.com/dfcreative/jquery.waterfall/blob/master/jquery.waterfall.js#L572It happens when i am running a Jasmine test.
Hacky but not sure if its right to wrap it with a conditional..
if(style != null)
?