Skip to main content

Bug Tracker

Side navigation

#9461 closed bug (duplicate)

Opened May 30, 2011 12:22PM UTC

Closed May 30, 2011 03:38PM UTC

Last modified May 30, 2011 03:38PM UTC

removeData not working for names with a "-"

Reported by: sieber@boerse-go.de Owned by:
Priority: high Milestone: 1.next
Component: data Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

When using names containg a "-" character in the data's name the removeData function does not work. Here some steps to reproduce:

var $b = $('body');

$b.data('x-y', 1);

console.log($b.data('x-y')); ok, this shows a 1

$b.removeData('x-y');

console.log( $b.data('x-y') ); not ok, this shows still a 1, should show undefined

Attachments (0)
Change History (2)

Changed May 30, 2011 03:38PM UTC by rwaldron comment:1

component: unfileddata
priority: undecidedhigh
resolution: → duplicate
status: newclosed

Changed May 30, 2011 03:38PM UTC by rwaldron comment:2

Duplicate of #7328.