Skip to content

View provider transactions

Jens Melgaard edited this page May 2, 2013 · 2 revisions

Alternatively to updating views instantly, views can be updated within a transaction.

This is done by calling the beginUpdate,

var t = $view.beginUpdate();
$view.clear();
$view.setOrUpdate('root', 'root.html');
$view.setOrUpdate('hint', 'hint.html');
t.commit();
Clone this wiki locally