[wp-trac] [WordPress Trac] #29052: TypeError: this.model is undefined
WordPress Trac
noreply at wordpress.org
Wed Aug 6 21:18:48 UTC 2014
#29052: TypeError: this.model is undefined
----------------------------+--------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+--------------------
Comment (by wonderboymusic):
This is happening because the Router is currently init'd as a timeout
hack, as opposed to firing at the end of the async load of the library.
Furthermore, if you keep the modal open with an attachment that is not on
page 1, it will never be there on page load (as is currently implemented).
The loading of views and attachments are decoupled from global page state,
so any dynamic pieces loaded with the library should be event-driven.
This has been problematic since the router was introduced here: [29057].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29052#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list