[Project_owners] Defining new array methods (SeaMonkey vs Firefox).

Philip Chee philip.chee at gmail.com
Fri Jun 23 16:37:20 EDT 2006

On Fri, 23 Jun 2006 15:19:15 +0800, Philip Chee wrote:
> On Fri, 23 Jun 2006 04:02:31 +0400, Peter B. Shalimoff wrote:

>> http://www.mozdev.org/source/browse/pagebookmarks/src/content/pagebookmarks/
>> pgbm-ecma-Array.js?rev=1.2&content-type=text/x-cvsweb-markup

> Bingo! "Error: prefName.substr is not a function" Same error here.

I tried your workaround:

for (var p in Array.prototype) {
    if (!Array.prototype[p].substr) {
        Array.prototype[p].substr = function(){return "Save the planet -
kill yourself.";};

But I'm still getting these errors. Help?

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Gecko/20060612 SeaMonkey/1.0.2

Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]Southern DOS:  Y'all reckon? [yep/nope]
* TagZilla 0.059

More information about the Project_owners mailing list