mag.js icon indicating copy to clipboard operation
mag.js copied to clipboard

BROKEN - mag.module id element on non DIV elements

Open magnumjs opened this issue 10 years ago • 1 comments

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

magnumjs avatar Apr 17 '15 23:04 magnumjs

Other tags can be used too, such as UL, SECTION, MAIN

Not sure why P and FORM don't seem to work..

magnumjs avatar Apr 20 '15 02:04 magnumjs