1/** 2 * 2023 DMConcept 3 * 4 * NOTICE OF LICENSE 5 * 6 * This file is licenced under the Software License Agreement. 7 * With the purchase or the installation of the software in your application 8 * you accept the licence agreement 9 * 10 * @author DMConcept <[email protected]> 11 * @copyright 2023 DMConcept 12 * @license Commercial license (You can not resell or redistribute this software.) 13 * 14 */ 15 16var CONFIGURATOR = CONFIGURATOR || {}; 17CONFIGURATOR.ELEMENTS = CONFIGURATOR.ELEMENTS || {}; 18CONFIGURATOR.ELEMENTS.CHOICES = CONFIGURATOR.ELEMENTS.CHOICES || {}; 19 20CONFIGURATOR.ELEMENTS.CHOICES.BaseChoices = function(step, parent) { 21 22 var Super = Object.getPrototypeOf(this); 23 24 this.init = function(step, parent){ 25 Super.init.call(this, step, parent); 26 this.updateInternalState(); 27 }; 28 29 30 /** 31 * Called right after children's update in order to set parent's state 32 * depending on children. Indeed, for checkboxes and radio button, we have 33 * to list active elements 34 */ 35 this.updateInternalState = function() { 36 // override by subclasses 37 }; 38 39 this.update = function(data) { 40 Super.update.call(this, data); 41 42 // update state after children's one 43 this.updateInternalState(); 44 }; 45 46 47 if (step) { 48 this.init(step, parent); 49 } 50}; 51 52CONFIGURATOR.ELEMENTS.CHOICES.BaseChoices.prototype = new CONFIGURATOR.ELEMENTS.BaseGroupElement;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.