resetAttribute
Discards any unsaved changes to the given attribute.
Example
1 2 3 4 5 | record.get( 'name' ); // 'Untitled Document' record.set( 'name' , 'Doc 1' ); record.get( 'name' ); // 'Doc 1' record.resetAttribute( 'name' ); record.get( 'name' ); // 'Untitled Document' |
Please login to continue.