Skip to content

Commit

Permalink
IE9 sometimes checks again window which can have length 0 (#757)
Browse files Browse the repository at this point in the history
Fixes #746 and maybe #747 (didn't test IE8)
  • Loading branch information
paulfalgout authored and Rycochet committed Mar 17, 2017
1 parent 8d03682 commit beb71a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@
/* NOTE: HTMLFormElements also have a length. */
isWrapped: function(variable) {
return variable
&& variable !== window
&& Type.isNumber(variable.length)
&& !Type.isString(variable)
&& !Type.isFunction(variable)
Expand Down

0 comments on commit beb71a1

Please sign in to comment.