public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function() {
    
   var i;
   var obj = {modules: [], wires: [], properties: null};

   for( i = 0 ; i < this.layer.containers.length ; i++) {
      obj.modules.push( {name: this.layer.containers[i].title, value: this.layer.containers[i].getValue(), config: this.layer.containers[i].getConfig()});
   }

   for( i = 0 ; i < this.layer.wires.length ; i++) {
      var wire = this.layer.wires[i];
		var wireObj = wire.getConfig();
		wireObj.src = {moduleId: WireIt.indexOf(wire.terminal1.container, this.layer.containers), terminal: wire.terminal1.name };
		wireObj.tgt = {moduleId: WireIt.indexOf(wire.terminal2.container, this.layer.containers), terminal: wire.terminal2.name };
      obj.wires.push(wireObj);
   }
   
   obj.properties = this.propertiesForm.getValue();
    
   return {
      name: obj.properties.name,
      working: obj
   };
 }
function() {
    
   var i;
   var obj = {modules: [], wires: [], properties: null};

   for( i = 0 ; i < this.layer.containers.length ; i++) {
      obj.modules.push( {name: this.layer.containers[i].title, value: this.layer.containers[i].getValue(), config: this.layer.containers[i].getConfig()});
   }

   for( i = 0 ; i < this.layer.wires.length ; i++) {
      var wire = this.layer.wires[i];
		var wireObj = wire.getConfig();
		wireObj.src = {moduleId: WireIt.indexOf(wire.terminal1.container, this.layer.containers), terminal: wire.terminal1.name };
		wireObj.tgt = {moduleId: WireIt.indexOf(wire.terminal2.container, this.layer.containers), terminal: wire.terminal2.name };
      obj.wires.push(wireObj);
   }
   
   obj.properties = this.propertiesForm.getValue();
    
   return {
      name: obj.properties.name,
      working: obj
   };
 }
function ( ) { var i ; var obj = { modules : [ ] , wires : [ ] , properties : null } ; for ( i = 0 ; i < this . layer . containers . length ; i ++ ) { obj . modules . push ( { name : this . layer . containers [ i ] . title , value : this . layer . containers [ i ] . getValue ( ) , config : this . layer . containers [ i ] . getConfig ( ) } ) ; } for ( i = 0 ; i < this . layer . wires . length ; i ++ ) { var wire = this . layer . wires [ i ] ; var wireObj = wire . getConfig ( ) ; wireObj . src = { moduleId : WireIt . indexOf ( wire . terminal1 . container , this . layer . containers ) , terminal : wire . terminal1 . name } ; wireObj . tgt = { moduleId : WireIt . indexOf ( wire . terminal2 . container , this . layer . containers ) , terminal : wire . terminal2 . name } ; obj . wires . push ( wireObj ) ; } obj . properties = this . propertiesForm . getValue ( ) ; return { name : obj . properties . name , working : obj } ; }
This method return a wiring within the given vocabulary described by the modules list
@method getValue
This method return a wiring within the given vocabulary described by the modules list