Sha256: 24d62eb1b3b912be65fd251757ed9e6d31fe8a9bade341904820501e4072e293

Contents?: true

Size: 1.13 KB

Versions: 27

Compression:

Stored size: 1.13 KB

Contents

/*** = Description
  ** A HDummyValue is just a placeholder for HValue values. HDummyValue
  ** is a light-weight alternative that doesn't implement any actual HValue
  ** functionality, but implements the essential methods and keeps the HControl
  ** content when an actual HValue instance isn't bound.
  ** It's the default valueObj type for components not bound to real HValue instances.
***/
var//RSence.Foundation
HDummyValue = HClass.extend({
  
/** = Description
  * HDummyValue is initialized just like a real HValue.
  *
  * = Parameters
  * +_id+::    Any string or integer, just a placeholder for HValue.id
  * +_value+:: Any valid js object, just as for HValue.value
  *
  **/
  constructor: function(_id, _value) {
    this.id = _id;
    this.value = _value;
  },

/** Sets a new instance payload value.
  **/
  set: function(_value) {
    this.value = _value;
  },

/** Returns the instance payload value.
  **/
  get: function() {
    return this.value;
  },
  
/** Binds HControl, does actually nothing.
  **/
  bind: function( _theObj ){},
  
/** Unbinds (releases) HControl, does actually nothing.
  **/
  unbind: function( _theObj ){}
});

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rsence-pre-2.3.0.22 js/foundation/control/dummyvalue/dummyvalue.js
rsence-pre-2.3.0.21 js/foundation/control/dummyvalue/dummyvalue.js
rsence-pre-2.3.0.20 js/foundation/control/dummyvalue/dummyvalue.js
rsence-pre-2.3.0.19 js/foundation/control/dummyvalue/dummyvalue.js
rsence-pre-2.3.0.18 js/foundation/control/dummyvalue/dummyvalue.js
rsence-pre-2.3.0.17 js/foundation/control/dummyvalue/dummyvalue.js
rsence-pre-2.3.0.16 js/foundation/control/dummyvalue/dummyvalue.js