From beb71a1ae3c201fe6b908611d0ebc8a9f71db996 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) --- velocity.js | 1 + 1 file changed, 1 insertion(+) diff --git a/velocity.js b/velocity.js index 38d8a1c0..9e4c0ddb 100644 --- a/velocity.js +++ b/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)