Open JiYouMCC opened 8 years ago
In line L98
The scenario is that there a element's data-localize will change by js. Then doing localize will cause issue
example:
var a = $("<div></div>").attr("data-localize", 1); > undefined a > [<div data-localize="1"></div>] a.data() > Object {localize: 1}
if change the attr data-localize
a.attr("data-localize", 2) > [<div data-localize="2"></div>] a.data() > Object {localize: 1} a.attr("data-localize") > "2"
Now I use workaround in my repository. The workaround seems so ugly...
$("#....").data("localize", newValue).attr("data-localize", newValue)
In line L98
The scenario is that there a element's data-localize will change by js. Then doing localize will cause issue
example:
if change the attr data-localize
Now I use workaround in my repository. The workaround seems so ugly...
$("#....").data("localize", newValue).attr("data-localize", newValue)