Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

obj.data return value in IE #171

Closed
kbuchanan opened this issue Jan 18, 2013 · 0 comments
Closed

obj.data return value in IE #171

kbuchanan opened this issue Jan 18, 2013 · 0 comments
Assignees

Comments

@kbuchanan
Copy link
Contributor

I have an issue when trying to target a data attribute on an object. Say, for example, I have an Object variable called obj. And it has no data-hash attribute.

In Chrome:
obj.data("hash") -> returns undefined

In IE9:
obj.data("hash") -> returns 0

Preferable if it returned undefined in both cases.

@ghost ghost assigned avoidwork Jan 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants