Skip to content

Commit 7882ba5

Browse files
committed
Merge pull request #328 from plotly/jquery-namespace
Replace $ check for jQuery check
2 parents 52a3b09 + 21ad3e8 commit 7882ba5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/events.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var Events = {
5353
* events.
5454
*/
5555
plotObj.emit = function(event, data) {
56-
if(typeof $ !== 'undefined') {
56+
if(typeof jQuery !== 'undefined') {
5757
$(plotObj).trigger(event, data);
5858
}
5959

@@ -76,7 +76,7 @@ var Events = {
7676
* If Jquery exists run all its handlers for this event and
7777
* collect the return value of the LAST handler function
7878
*/
79-
if(typeof $ !== 'undefined') {
79+
if(typeof jQuery !== 'undefined') {
8080
jQueryHandlerValue = $(plotObj).triggerHandler(event, data);
8181
}
8282

0 commit comments

Comments
 (0)