UNPKG

zpt

Version:

Zenon Page Templates - JS (ZPT-JS)

21 lines (14 loc) 501 B
/* Class ObjectDelete */ "use strict"; var AbstractObjectAction = require( './abstractObjectAction.js' ); var ObjectDelete = function( object, dictionary ) { AbstractObjectAction.call( this, object, dictionary ); }; ObjectDelete.prototype = Object.create( AbstractObjectAction.prototype ); ObjectDelete.prototype.updateDictionary = function( dictionary ){ var objectValue = this.getValue( dictionary ); delete objectValue[ this.property ]; }; module.exports = ObjectDelete;