Closed DracoBlue closed 10 years ago
+1
+1
+1
+1
but then you loose the possibility to add more than one behavior to the same element.
for example: two behaviors with two different data-json values
<div>
<input class="jsb_ jsb_Name1" type="hidden" value="key1=value1"/>
<input class="jsb_ jsb_Name2" type="hidden" value="key2=value2"/>
</div>
i know this is a extreme case but currently possible.
@larslaade see #16, we're discussing that over there.
I think it's okay to remove the input-type-hidden feature when #16 gets a feasible solution. The older jsb versions still work w/ input type hidden and thus we just need to make sure the BC break is mentioned in prominent places. :-)
+1 and we have the benefit that data-jsb attribute can be optional, yeeaha!!
In the first version of jsb, it is possible to use:
to load data.
Since everybody(?) uses the new:
we might remove the hidden-input feature.