demo/script/main.js
function update(state) {
      var propertiesChanged = false;
      bindings.forEach(function (name) {
        // Perhaps .reduce() to a boolean?
        var statePath = properties[name].statePath;

        var value = typeof statePath === 'function' ? statePath.call(element, state) : (0, _path.get)(state, statePath);

        var changed = element._setPendingPropertyOrPath(name, value, true);
        propertiesChanged = propertiesChanged || changed;
      });
      if (propertiesChanged) {
        element._invalidateProperties();
      }
    }
function update(state) {
      var propertiesChanged = false;
      bindings.forEach(function (name) {
        // Perhaps .reduce() to a boolean?
        var statePath = properties[name].statePath;

        var value = typeof statePath === 'function' ? statePath.call(element, state) : (0, _path.get)(state, statePath);

        var changed = element._setPendingPropertyOrPath(name, value, true);
        propertiesChanged = propertiesChanged || changed;
      });
      if (propertiesChanged) {
        element._invalidateProperties();
      }
    }
function update ( state ) { var propertiesChanged = false ; bindings . forEach ( function ( name ) { // Perhaps .reduce() to a boolean? var statePath = properties [ name ] . statePath ; var value = typeof statePath === 'function' ? statePath . call ( element , state ) : ( 0 , _path . get ) ( state , statePath ) ; var changed = element . _setPendingPropertyOrPath ( name , value , true ) ; propertiesChanged = propertiesChanged || changed ; } ) ; if ( propertiesChanged ) { element . _invalidateProperties ( ) ; } }
Updates an element's properties with the given state.

@private
@param {Object} state
Updates an element s properties with the given state .