Class: Router

wp.media.view. Router


new Router()

wp.media.view.Router
Source:

Extends

Methods


dispose()

Inherited From:
Overrides:
Source:
To Do:
  • The internal comment mentions this might have been a stop-gap before Backbone 0.9.8 came out. Figure out if Backbone core takes care of this in Backbone.View now.
Returns:
Returns itself to allow chaining
Type
wp.media.View

get(id)

Parameters:
Name Type Description
id string
Inherited From:
Overrides:
Source:
Returns:
Type
wp.media.View

remove()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.View

select(id)

Parameters:
Name Type Description
id string
Inherited From:
Source:

set(id, view, options)

Parameters:
Name Type Description
id string
view wp.media.View | Object
options Object
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.PriorityList

toView(options, id)

Parameters:
Name Type Description
options Object
id string
Inherited From:
Overrides:
Source:
Returns:
Type
wp.media.View

unset(id)

Parameters:
Name Type Description
id string
Inherited From:
Overrides:
Source:
Returns:
Type
wp.media.view.PriorityList