Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#14735 closed bug (notabug)

getUserData() or setUserData() deprecation warning in Firefox

Reported by: tegskywalker@… Owned by: tegskywalker@…
Priority: undecided Milestone: None
Component: unfiled Version: 2.1.0
Keywords: Cc:
Blocked by: Blocking:

Description

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 5 years ago by dmethvin

Owner: set to tegskywalker@…
Status: newpending

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

comment:2 Changed 5 years ago by Rick Waldron

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

comment:3 Changed 5 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 5 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.