I like the markup style very much,component can be declare by html with less javascript.
the html is readable , the javscript block is clear.
but, i have an obsession for javacirpt in html : I don't want any javascript code in the html markup.
the best style I want is like this:
the html code:
<div id='the_id' data-options= 'only options here ' class='esayui-component-name'
then the javascript code:
$('#the_id').component-name('bind','eventName',function(){
event handler...
})
is it possible without javascirpt code init but can bind event after component init ready?