Displaying 1 result from an estimated 1 matches for "newmyobject".
Did you mean:
  new_object
  
2007 Jan 22
1
Prototype.js object.constructor exception
...e like this:
myObject.js
------------
function myObject (arg1, arg2, arg3)
{
  //does some constructor related stuff
}
myObject.prototype.createSomething = function()
{
  // do more boring stuff
  // return an Array;
}
manager.js
-----------
var fakeHashMap = new Object();
fakeHashMap[''newmyobject''] = new myObject(foo, bar, baz);
try
{
 var liStuff = fakeHashMap[''newmyobject''].createSomething();
}
catch (error)
{
 // do nothing
}
-----------
When I make the createSomething call, I get an error from protoype.js
(1.5) from Enumerable with something like uncaught e...