soney / constraintjs

Constraint library for JavaScript

Home Page:cjs.from.so/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MapConstraint of MapConstraint

QuentinRoy opened this issue · comments

It would be nice to be able to create a MapConstraint of a MapConstraint..

For example:

var cjsMap = cjs({
    '1': 'a',
    '2': 'b'
});
var other = cjs(cjsMap);

console.log(cjsMap.item('1')); // a
console.log(other.item('1')); // undefined :(