Fix bug when accessing .data() on an empty set. Return null rather than throwing...
authorJacob Wright <jacwright@gmail.com>
Tue, 7 Sep 2010 16:51:57 +0000 (10:51 -0600)
committerjeresig <jeresig@gmail.com>
Wed, 22 Sep 2010 15:38:37 +0000 (11:38 -0400)
commit626624a19a6cbd70b44da08ee2123ba79f8e2bb0
tree77601cde04bd6c6fe6fcc86bb82eaa5d61a1496f
parent1f667aa035b3e4885d6b35fa9aa4990310f131af
Fix bug when accessing .data() on an empty set. Return null rather than throwing exception.
src/data.js
test/unit/data.js