Per @ghing at the Tribune, it would be nice for the direct embed loader to take as its container option either a selector string (#foo, .foo) or an actual DOM/jQuery element. Much of the pipeline is already compatible with this (Backbone, for instance, lets you pass in a DOM element when creating the view), but some parts like pixel ping assume a selector string.
Need to:
Ensure the whole pipeline works
Make sure we still have an ID to use for keying the DocumentCloud.embed.views.pages object
Per @ghing at the Tribune, it would be nice for the direct embed loader to take as its
container
option either a selector string (#foo
,.foo
) or an actual DOM/jQuery element. Much of the pipeline is already compatible with this (Backbone, for instance, lets you pass in a DOM element when creating the view), but some parts like pixel ping assume a selector string.Need to:
DocumentCloud.embed.views.pages
object