From a94881783f673b01914d9cace7adb352c48ceff6 Mon Sep 17 00:00:00 2001 From: Paul Falgout Date: Fri, 17 Mar 2017 18:12:50 +0900 Subject: [PATCH] IE9 sometimes checks again window which can have length 0 (#757) Fixes #746 and maybe #747 (didn't test IE8) --- packages/velocity/velocity.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/velocity/velocity.js b/packages/velocity/velocity.js index 38d8a1c0..9e4c0ddb 100644 --- a/packages/velocity/velocity.js +++ b/packages/velocity/velocity.js @@ -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)