UNPKG

ractive

Version:

Next-generation DOM manipulation

13 lines (11 loc) 378 B
export default function Viewmodel$mark ( keypath, isImplicitChange ) { // implicit changes (i.e. `foo.length` on `ractive.push('foo',42)`) // should not be picked up by pattern observers if ( isImplicitChange ) { this.implicitChanges[ keypath ] = true; } if ( this.changes.indexOf( keypath ) === -1 ) { this.changes.push( keypath ); this.clearCache( keypath ); } }