From 1b0268a4b9bb145fe7e9de4613d66109772c186e Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sat, 10 Sep 2016 22:55:18 +0200 Subject: [PATCH] Correct check for undefined variable The code was comparing the result of `typeof` with a variable named `undefined`. As typeof returns a string it should compare to `'undefined'` --- src/definitions/modules/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 0e4a6142c..e981bb776 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -415,7 +415,7 @@ $.fn.popup = function(parameters) { }, supports: { svg: function() { - return (typeof SVGGraphicsElement === undefined); + return (typeof SVGGraphicsElement === 'undefined'); } }, animate: {