backplane-import/backplanejs — Issue #49: Optimise the rewire phase of xforms-refresh
Author: backplane-import
Created: 2011-10-15 20:22:19+00:00
State: open

### Imported from backplanejs Google Code [issue 49](http://code.google.com/p/backplanejs/issues/detail?id=49).

Reporter
markbirbeck

Date
25 Apr 2010 3:08:25 PM UTC

The first step of xforms-refresh event handling is to reevaluate all UI bindings:

http://www.w3.org/TR/xforms11/#evt-refresh

This is handled by the Model.rewire() method which in turn calls the
Control.rewire() method for each control. Currently the control is being forced
to rewire, regardless of whether any dependent data has changed.

The Model.rewire() needs to check whether a dependent value has changed,
and only call the Control.rewire() method if there is anything to do.