Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BROKEN - mag.module id element on non DIV elements #1

Open
magnumjs opened this issue Apr 17, 2015 · 1 comment
Open

BROKEN - mag.module id element on non DIV elements #1

magnumjs opened this issue Apr 17, 2015 · 1 comment

Comments

@magnumjs
Copy link
Owner

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
Copy link
Owner Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant