We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6922f2 commit 3522c09Copy full SHA for 3522c09
widgster.js
@@ -4,16 +4,13 @@
4
( function( global, factory ) {
5
"use strict";
6
7
- if ( typeof module === "object"
8
- && typeof module.exports === "object"
9
- || !global.document
10
- || !global.jQuery) {
11
- console.warn( "Widgster must be executed in a browser environment with jQuery defined" );
+ if (global.jQuery && global.jQuery.fn) {
+ factory(global.jQuery);
12
} else {
13
- factory( global.jQuery );
+ console.warn("Widgster must be executed in a browser environment with jQuery defined");
14
}
15
} )( typeof window !== "undefined" ? window : this, function( $ ) {
16
- // WIDGSTER CLASS DEFINITION
+ // WIDGSTER CLASS DEFINITION
17
// ======================
18
19
var Widgster = function (el, options) {
0 commit comments