Skip to content

Commit 1ce6c35

Browse files
committed
Merge pull request patricklodder#3 from sorribas/master
Use 'jQuery' instead of '$' alias, part I.
2 parents 0359bea + 2f1325c commit 1ce6c35

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jquery.zclip.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ var ZeroClipboard = {
162162
// URL to movie
163163
nextId: 1,
164164
// ID of next movie
165-
$: function (thingy) {
165+
jQuery: function (thingy) {
166166
// simple DOM lookup utility function
167167
if (typeof(thingy) == 'string') thingy = document.getElementById(thingy);
168168
if (!thingy.addClass) {
@@ -275,7 +275,7 @@ ZeroClipboard.Client.prototype = {
275275
glue: function (elem, appendElem, stylesToAdd) {
276276
// glue to DOM element
277277
// elem can be ID or actual DOM element object
278-
this.domElement = ZeroClipboard.$(elem);
278+
this.domElement = ZeroClipboard.jQuery(elem);
279279

280280
// float just above object, or zIndex 99 if dom element isn't set
281281
var zIndex = 99;
@@ -284,7 +284,7 @@ ZeroClipboard.Client.prototype = {
284284
}
285285

286286
if (typeof(appendElem) == 'string') {
287-
appendElem = ZeroClipboard.$(appendElem);
287+
appendElem = ZeroClipboard.jQuery(appendElem);
288288
} else if (typeof(appendElem) == 'undefined') {
289289
appendElem = document.getElementsByTagName('body')[0];
290290
}
@@ -296,7 +296,7 @@ ZeroClipboard.Client.prototype = {
296296
this.div = document.createElement('div');
297297
this.div.className = "zclip";
298298
this.div.id = "zclip-" + this.movieId;
299-
$(this.domElement).data('zclipId', 'zclip-' + this.movieId);
299+
jQuery(this.domElement).data('zclipId', 'zclip-' + this.movieId);
300300
var style = this.div.style;
301301
style.position = 'absolute';
302302
style.left = '' + box.left + 'px';
@@ -366,7 +366,7 @@ ZeroClipboard.Client.prototype = {
366366
// reposition our floating div, optionally to new container
367367
// warning: container CANNOT change size, only position
368368
if (elem) {
369-
this.domElement = ZeroClipboard.$(elem);
369+
this.domElement = ZeroClipboard.jQuery(elem);
370370
if (!this.domElement) this.hide();
371371
}
372372

0 commit comments

Comments
 (0)