ideaovation / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

FF3 reports "keys is not a function" #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build a page that uses bse2.js
2. load the page in firefox3 (beta5)
3. note the error console report

The message I see is "keys is not a function" for base2.js line 470
then another message appears in the console:
"base2.DOM is undefined"

Let me know if you need more info or a simple example
mamund AT yahoo DOT com

Original issue reported on code.google.com by mca%amun...@gtempaccount.com on 9 Apr 2008 at 4:20

GoogleCodeExporter commented 9 years ago
here's the code section in base2.js that reports the error in FF3:

// ========================================================================
// base2/Array2.js
// ========================================================================

// This module implements all Array methods.
// This module is not public but its methods are accessible through the Array2 
object
(below). 

var IArray = Module.extend({
    combine: function(keys, values) {
        // combine two arrays to make a hash
        if (!values) values = keys;
*ERROR LINE*        return this.reduce(keys, {}, function(object, key, index) {
            object[key] = values[index];
            return object;
        });
    },

Original comment by mca%amun...@gtempaccount.com on 9 Apr 2008 at 4:22

GoogleCodeExporter commented 9 years ago
Can you provide a test page please?

Original comment by dean.edw...@gmail.com on 9 Apr 2008 at 4:24

GoogleCodeExporter commented 9 years ago
here's a public page that should show the error:
http://amundsen.com/examples/ff3-base2/index.html

works in FF2, but not in FF3.

Original comment by mca%amun...@gtempaccount.com on 9 Apr 2008 at 6:10

GoogleCodeExporter commented 9 years ago
You are using an ancient version of base2. :-)

The latest version is here:

http://base2.googlecode.com/svn/version/

Original comment by dean.edw...@gmail.com on 10 Apr 2008 at 5:50

GoogleCodeExporter commented 9 years ago
*sigh*

sorry 'bout that. i'll update and continue on.

thanks.

Original comment by mca%amun...@gtempaccount.com on 10 Apr 2008 at 7:37