Javascript for Episerver 7.5 episerverframework

_ContextMixin (constructor)

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

public method _contextChanged ( context , callerData )

Parameters

public method _initialContextChanged ( context , callerData )

Parameters

public method constructor ( options )

Parameters

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

public inherited method destroy ( preserveDom )

Destroy this class, releasing any resources registered via own().

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.