Skip to content

Commit fa4597f

Browse files
#47 Fixed reference to jQuery
1 parent f86d929 commit fa4597f

File tree

4 files changed

+47
-45
lines changed

4 files changed

+47
-45
lines changed

dist/htmlgl.js

Lines changed: 18 additions & 16 deletions
Large diffs are not rendered by default.

dist/htmlgl.min.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/js/htmlgl.min.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/gl-element.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@
217217
}
218218

219219
//Wrap to jQuery plugin
220-
if (w.$ !== undefined) {
221-
$[HTMLGL.JQ_PLUGIN_NAME] = {};
222-
$[HTMLGL.JQ_PLUGIN_NAME].elements = [];
220+
if (w.jQuery !== undefined) {
221+
jQuery[HTMLGL.JQ_PLUGIN_NAME] = {};
222+
jQuery[HTMLGL.JQ_PLUGIN_NAME].elements = [];
223223

224-
$.fn[HTMLGL.JQ_PLUGIN_NAME] = function () {
224+
jQuery.fn[HTMLGL.JQ_PLUGIN_NAME] = function () {
225225
return this.each(function () {
226-
if (!$.data(this, 'plugin_' + HTMLGL.JQ_PLUGIN_NAME)) {
226+
if (!jQuery.data(this, 'plugin_' + HTMLGL.JQ_PLUGIN_NAME)) {
227227
var propellerObj = HTMLGL.GLElement.createFromNode(this);
228-
$.data(this, 'plugin_' + HTMLGL.JQ_PLUGIN_NAME, propellerObj);
229-
$[HTMLGL.JQ_PLUGIN_NAME].elements.push(propellerObj);
228+
jQuery.data(this, 'plugin_' + HTMLGL.JQ_PLUGIN_NAME, propellerObj);
229+
jQuery[HTMLGL.JQ_PLUGIN_NAME].elements.push(propellerObj);
230230
}
231231
});
232232
};

0 commit comments

Comments
 (0)