When store something with
$.data(element, "key-with-hypen", true);
you cannot get it, with the
$(element).data("keyWithHyphen", true);
The behaviour is new in the version 2.0, while version 1.11.3 get the stored data correctly
=> test case in version 1.11.3
http://jsbin.com/rulejupufu/1/edit?html,js,output
=> test case in version 2.1.4
http://jsbin.com/jawupunedu/1/edit?html,js,output