-
Notifications
You must be signed in to change notification settings - Fork 70
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
Bind Agility Object to DOM element in page #114
Comments
change render in view object to render: function(){ and change if (typeof args[1] === 'object') { |
k, some basic stuff seem to work after a tweak to handle empty objects passed as the 'view' argument in the $$ constructors. In render function: if(typeof this.view.format != 'string' && !$.isEmptyObject(this.view.format)) { and if (typeof args[1] === 'object') { Will check more thoroughly as I implement code using the tweak. |
The view binding works great. But if I did something like
And create the agility object using the above code, the model doesn't reflect the values, i.e. article.model.get("content") is undefined Is there a way to load the model from the DOM when the object is initialized? |
Would be awesome if I could bind an agility object to an existing element on the page. e.g.
var menu=$$({},$('.menu'),{}) ;
How can we achieve this?
The text was updated successfully, but these errors were encountered: