[wp-trac] [WordPress Trac] #30505: Backbone subviews cannot be attached directly to DOM elements

WordPress Trac noreply at wordpress.org
Fri Feb 19 21:40:47 UTC 2016


#30505: Backbone subviews cannot be attached directly to DOM elements
----------------------------+------------------------------
 Reporter:  rmccue          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript
----------------------------+------------------------------

Comment (by georgestephanis):

 Isn't the reason that this requires selectors and not elements so that it
 can "re-find" the subviews after a render of the parent view?  If it was a
 reference to the prior element itself, wouldn't that reference then be
 broken upon a redraw of the parent?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30505#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list