[ 2 posts ]

B. Estrade

  • Username: estrabd
  • Joined: Wed Sep 07, 2011 12:28 pm
  • Posts: 49
  • Location: Houston, Texas
  • Twitter: estrabd
  • GitHub: estrabd
  • Gists: estrabd
  • IRC: estrabd
  • Offline
  • Profile

Issue going from Y.View 3.4.1 to 3.5.1

Post Posted: Fri Jun 01, 2012 10:12 am
+0-
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

B. Estrade

  • Username: estrabd
  • Joined: Wed Sep 07, 2011 12:28 pm
  • Posts: 49
  • Location: Houston, Texas
  • Twitter: estrabd
  • GitHub: estrabd
  • Gists: estrabd
  • IRC: estrabd
  • Offline
  • Profile

[solved] Re: Issue going from Y.View 3.4.1 to 3.5.1

Post Posted: Mon Jun 04, 2012 1:45 pm
+0-
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
  [ 2 posts ]
Display posts from previous:  Sort by  
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