search for: fakehashmap

Displaying 1 result from an estimated 1 matches for "fakehashmap".

2007 Jan 22
1
Prototype.js object.constructor exception
...roperty 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 (error) { // do nothing } ----------- When I make the createSomething call, I get an error from protoype.js (1...