-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Description
In gl-element.js (lines 219-233):
//Wrap to jQuery plugin
if (w.$ !== undefined) {
$[HTMLGL.JQ_PLUGIN_NAME] = {};
$[HTMLGL.JQ_PLUGIN_NAME].elements = [];
$.fn[HTMLGL.JQ_PLUGIN_NAME] = function () {
return this.each(function () {
if (!$.data(this, 'plugin_' + HTMLGL.JQ_PLUGIN_NAME)) {
var propellerObj = HTMLGL.GLElement.createFromNode(this);
$.data(this, 'plugin_' + HTMLGL.JQ_PLUGIN_NAME, propellerObj);
$[HTMLGL.JQ_PLUGIN_NAME].elements.push(propellerObj);
}
});
};
}
$ is not always jQuery and you shouldn't assume that it is. Assign properties to the jQuery object.
Metadata
Metadata
Assignees
Labels
No labels