|
Object equality
|
| |
...Ok, thanks. At least I know I won't be changing my code down the line in that regard.
|
|
Status and Future of Rhino
|
| |
What is the current status of Rhino? Is it still being developed,updated, etc? What does the future hold for Rhino? I was looking at the latest release of Rhino and it seems to still only support Javascript 1.7. Will it support Javascript 1.8 in the near future? What about Ecmascript 5th Edition? Thanks,... more »
|
|
JSON.parse() problem
|
| |
Hello, I am doing some tests with the CVS version of Rhino 1.7R3, and I am running into an issue with the JSON native object. The problem involves the object returned when parsing a dictionary, if the keys happen to be (string representations of) numbers. More specifically: js> var o1 = {"a": 100} js> var o2 = {"1": 100}... more »
|
|
Caching wrapped objects in custom WrapFactory
|
| |
In implementing a WrapFactory I noticed that objects were being wrapped multiple times (probably every time accessed). This thread: [link] is a discussion of caching the wrapped objects. It uses terms like "weak reference" which scares me, I'm likely to produce a memory issue. I'm... more »
|
|
Alias class names
|
| |
Hello, I'm familiar with this: ScriptableObject.defineClass(s cope, long.path.name.MyEntity.class) ; which puts MyEntity at the top level, perhaps with a name "Entity". MyEntity must be Scriptable. I'd like to do the same with classes that aren't scriptable. Currently I stick code at the front like so:... more »
|
|
Object equality
|
| |
Hello, Neither == nor === invokes equals() on my Java objects. Should I expect either to return true? Obviously obj1.equals(obj2) works as expected. Sorry my JavaScript is not so good. Is there some method I need to implement to control how == works? Thanks.
|
|
Unwrap Factory?
|
| |
Hello, I've experimented with WrapFactory. I understand how/when a Java object gets wrapped into a Scriptable object. When I access my domain object I get a wrapped object. The problem is when I go to set a value of the domain object with another domain object. The new value will be a wrapped object. It's a... more »
|
|
|