mag.js
mag.js copied to clipboard
BROKEN - mag.module id element on non DIV elements
if I use a form element or any non DIV as the mag.module ID element it breaks,
It seems as only the div element can be used as the top module container?
<form id="form>
<h2>Hello!</h2>
</form>
mag.module('former',{view:function(el,pr,st){
st.h2='YO!'
}})
produces no change v 0.8
http://jsbin.com/gupitufado/1/edit?html,js,output
Other tags can be used too, such as UL, SECTION, MAIN
Not sure why P and FORM don't seem to work..