| Page 1 of 1 | [ 2 posts ] |
|
I am having issues with upgrading from 3.4.1's Y.View to 3.5.1's. In particular,
the DOM events drescribed in 'events:' are not getting not getting heard (I'd imagine). Both View instances are identical except for how they refer to the attached model. The 3.5.1 View uses the attribute accessor, this.get('model'), while the 3.4.1 instance uses the deprecated this.model. I have boiled it down as simply as I could. Works (3.4.1 & this.model) http://www.0x743.com/view-event-3.4.1.html Doesn't (3.5.1 & this.get('model')) http://www.0x743.com/view-event-3.5.1.html I don't know if it's the way I am attaching to the DOM container or what I am doing wrong. Any help would be appreciated because I *really* want to use 3.5.1, and this sort of thing is a deal breaker for me if I can't get it working throughout my code. All JS is in http://www.0x743.com/js/ - anything that has no version is meant for the 3.5.1 non-working example. Thanks! Brett |
|
I thought I had read through http://yuilibrary.com/yui/docs/view/#up ... om-yui-34x more carefully, but I was still treating 'container' as a field and not an attribute.
Thanks to brian_miller, jshirley, and Tivac on #yui. Brett |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group