Constraint B
Save!
Constraint B
always: { this.get("sliderA").getValue() == this.get("sliderB").getValue() + 0.1 }
Enable
Remove
Add
Log Messages
X

Menu
Save!
ObjectEditor -- constraintList>>saveConstraint
X

Menu
    
    if (match !== null) {
        var condition = match[1];
        
        var ctx = {_$_self: this};
        
        // fix up the context (a bit hacky)
        var getters;
        var that = this;
        condition = condition.replace(thisGetPattern, function(m, name, offset, string) {
            console.info(m, name, offset, string);
            ctx['_$_' + name] = that.get(name);
            return '_$_' + name;
        });
        // replace other this references
        condition = condition.replace('this.', '_$_self.');
        // add return statement for anonymous function
        condition = 'return ' + condition;
        
        console.log(condition);
        
        var constraint = Global.bbb.always({
            // solver: this.solver,
            ctx: ctx
        }, new Function(condition));
        
        this.constraints[selectedIndex].constraint = constraint;
    }
    
    this.updateItems();
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
<lively.morphic.List#9DBD1... - constraintList>
Tag:
run
save
Tests

-- ALL --
addConstraint
getSelectedConstraint
removeConstraint
reset
saveConstraint
toggleConstraint
unconstrainAll
updateItems
updateSelection
Scripts
-
+
-
Connections
+
-- ALL --
selection,AttributeConnection(<lively.morphic.List#9DBD1... - constraintList>.selection --> <lively.morphic.List#9DBD1... - constraintList>.updateSelection)
all