[wp-trac] [WordPress Trac] #30896: Backbone Views should use `listenTo` when listening to models
WordPress Trac
noreply at wordpress.org
Sun Jan 4 05:24:26 UTC 2015
#30896: Backbone Views should use `listenTo` when listening to models
----------------------------+-----------------------------
Reporter: wonderboymusic | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: javascript
----------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31045"]:
{{{
#!CommitTicketReference repository="" revision="31045"
In Media Views, use `this.listenTo( this.model, .... )` instead of
`this.model.on( .... )` to fix garbage collection and to avoid "ghost
views."
Fixes #30896.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30896#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list