Browse Source

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'`
pull/4544/head
Mathias Rangel Wulff 8 years ago
committed by GitHub
parent
commit
1b0268a4b9
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/modules/popup.js

2
src/definitions/modules/popup.js

@ -415,7 +415,7 @@ $.fn.popup = function(parameters) {
}, },
supports: { supports: {
svg: function() { svg: function() {
return (typeof SVGGraphicsElement === undefined);
return (typeof SVGGraphicsElement === 'undefined');
} }
}, },
animate: { animate: {

Loading…
Cancel
Save