Javascript for Episerver 7.5 episerverframework

_ContextMixin

Summary

Helps keeping up to date with the current context. Mixing this into a class gives access to current context and other useful features.

Location

epi/shell/_ContextMixin

Extends

Properties

_currentContext

The currently loaded context

Methods

protected method contextChanged ( ctx , callerData )

Called when the currently loaded page changes. I.e. a new page is loaded into the preview area.

Parameters

protected method contextChangeFailed ( ctx , callerData )

Called when loading the context fails

Parameters

protected method contextUpdated ( ctx , callerData )

Called when the currently loaded page is updated. For instance when the language settings are changed.

Parameters

protected method getCurrentContext ( )

Returns either the current context or a deferred which will resolve context as soon as it becomes available.


protected method own ( )

Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.