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 Aug 2, 2020
1 parent 06eb066 commit a948817
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/velocity/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 a948817

Please sign in to comment.