Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
The set() method is for assigning a value to property that has already been
defined, not for defining new properties.
Consider the example on the homepage; The property ObjectA.foo has already been
defined on the object, prior to bindTo() or set() being called.
Original comment by j...@urbanplum.eu
on 17 Sep 2012 at 9:32
Thanks for the clarification about purpose of set.
My comment on line 193 was addressing a different issue. The code says:
if (!key in this) ...
Which is equivalent to:
if ((!key) in this) ...
Which for most keys is ALWAYS going to be equivalent to:
if (false in this) ...
I think you wanted:
if (!(key in this)) ...
Original comment by James.Sy...@gmail.com
on 18 Sep 2012 at 8:46
Ah! Thanks - that exception would almost never have been raised.
I'll update and push now.
Thanks again,
John
Original comment by j...@urbanplum.eu
on 18 Sep 2012 at 9:37
I'll handle this one.
Original comment by j...@urbanplum.eu
on 18 Sep 2012 at 9:49
Fixed in latest commit. Downloads need updating though.
Original comment by j...@urbanplum.eu
on 18 Sep 2012 at 9:51
Original issue reported on code.google.com by
James.Sy...@gmail.com
on 16 Sep 2012 at 4:23