Documentation Center

Editor.wrapInTransaction

Description

This method returns the function passed in the argument, now wrapped in an SDL LiveContent Create transaction.

More information can be found on How to use Xopus transactions.

Syntax

Editor.wrapInTransaction (code : Function, win (optional) : Object) : mixed

Arguments

code
Function. The code to run
win (optional)
Object. this object

Return Value

mixed. Passed the return value of the wrapped function