Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#14735 closed bug (notabug)

getUserData() or setUserData() deprecation warning in Firefox

Reported by: [email protected] Owned by: [email protected]
Priority: undecided Milestone: None
Component: unfiled Version: 2.1.0
Keywords: Cc:
Blocked by: Blocking:


I don't know if this is in older versions of Firefox, but in version 26, I get this message in the console when using jQuery 2.1.0:

Use of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset instead.

I haven't tested this in Chromium/Chrome, but I wanted to let you know about the warning for 1.11.1 and 2.1.1.

Change History (4)

comment:1 Changed 9 years ago by dmethvin

Owner: set to [email protected]
Status: newpending

Your test case wasn't included, can you attach one?

comment:2 Changed 9 years ago by Rick Waldron

I love that message. I will gladly update the data module to use WeakMaps :)

comment:3 Changed 9 years ago by Rick Waldron

Resolution: notabug
Status: pendingclosed

Fun aside, there is not a single use of either getUserData or setUserData in the entire jQuery source, so I'm closing this.

comment:4 Changed 9 years ago by vrav

In case anyone else gets this, I followed the reference error and it was coming from the Adblock Plus addon. For cleanliness, I simply disabled the addon during jQuery development.

Note: See TracTickets for help on using tickets.