Ticket #10441 (closed enhancement: duplicate)
Add .hasData method in addition to jQuery.hasData
|Reported by:||wilfred@…||Owned by:|
It would be nice to have a .hasData method on a selection, in the same way jQuery.data and jQuery.removeData already do.
Commit is https://github.com/Wilfred/jquery/commit/12b79076a0d90f1f3f4614479d3113078d003877 and I'll submit a pull request.
Please let me know if it's OK.