Displaying 1 result from an estimated 1 matches for "createsometh".
2007 Jan 22
1
Prototype.js object.constructor exception
I''m trying to debug an a uncaught exception: Permission denied to get
property Object.constructor error.
I have some code 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 (err...