graph-object.js
/**
   Return an array of the names of persistent properties, to be managed by the proxy.
   */
Return an array of the names of persistent properties, to be managed by the proxy.
Return an array of the names of persistent properties to be managed by the proxy .
persistentProperties() {
    if (! this._persistentProperties) {
      var ownProperties = Object.keys(this);
      var prototypeProperties = Object.keys(this.constructor.prototype);
      var existingProperties = ownProperties.concat(prototypeProperties);
      this.constructor.persistentProperties();
      console.log("own", ownProperties);
      console.log("prototype", prototypeProperties);
      console.log("_persistent", this._persistentProperties);
      for (const p of this._persistentProperties) {
        if (existingProperties.indexOf(p) < 0) {
          console.trace(`GraphObject.persistentProperties: property not found: '${p}'`, this);
          throw new Error(`GraphObject.persistentProperties: property not found: '${p}'`);
        }
      }
    }
    return (this._persistentProperties);
  }
persistentProperties ( ) { if ( ! this . _persistentProperties ) { var ownProperties = Object . keys ( this ) ; var prototypeProperties = Object . keys ( this . constructor . prototype ) ; var existingProperties = ownProperties . concat ( prototypeProperties ) ; this . constructor . persistentProperties ( ) ; console . log ( "own" , ownProperties ) ; console . log ( "prototype" , prototypeProperties ) ; console . log ( "_persistent" , this . _persistentProperties ) ; for ( const p of this . _persistentProperties ) { if ( existingProperties . indexOf ( p ) < 0 ) { console . trace ( ` ${ p } ` , this ) ; throw new Error ( ` ${ p } ` ) ; } } } return ( this . _persistentProperties ) ; }
Return an array of the names of persistent properties, to be managed by the proxy.
Return an array of the names of persistent properties to be managed by the proxy .
//console.log('persistentProperties'); //console.log('persistentProperties: new');