Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

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