js/foundation/control/valueaction/valueaction.js in rsence-pre-2.3.0.18 vs js/foundation/control/valueaction/valueaction.js in rsence-pre-2.3.0.19
- old
+ new
@@ -1,8 +1,8 @@
var
-HValueAction = HClass.extend({
+HValueAction = UtilMethods.extend({
constructor: function( _rect, _parent, _options ){
if( _rect && _rect.hasAncestor && _rect.hasAncestor( HClass ) ){
_options = _parent;
_parent = _rect;
}
@@ -15,10 +15,10 @@
this.value = _options.value;
}
if( _options.bind ){
var _valueObj = _options.bind;
if( typeof _valueObj == 'string' ){
- _valueObj = HVM.values[ _valueObj ];
+ _valueObj = this.getValueById( _valueObj );
}
_valueObj.bind( this );
}
else if( _options.valueObj ){
_options.valueObj.bind( this );