Changes between Initial Version and Version 1 of Ticket #10175


Ignore:
Timestamp:
Oct 22, 2009, 8:44:35 AM (10 years ago)
Author:
bill
Comment:

This is working for me. I did a:

./build.sh profile=demos-all action=release

And then I modified test_Button.html to have the first two requires as:

dojo.require("dijit.dijit"); // optimize: load dijit layer
dojo.require("dijit.dijit-all"); 

dijit-all.js contains StackContainer as you instructed.

Then from the Firebug console (FF3.5/mac) I do:

x = new dojo.NodeList;
x.push(1,2,3,4,5);
x.map(function(i){return i+1;})

It's returning 2,3,4,5,6 for me as expected.

Does that work for you? Maybe you have something weird in your build... you need to provide an exact profile of a build and test file which reproduce the problem.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10175

    • Property Owner changed from anonymous to James Burke
    • Property Component changed from General to BuildSystem
  • Ticket #10175 – Description

    initial v1  
    44
    55To reproduce:
    6 1. Create a build that contains a StackContainer-based widget (I hit this first in dojox.widget.Wizard)
    7 2. Add it to a page using markup
     6 1. Create a build that contains a StackContainer-based widget (I hit this first in dojox.widget.Wizard)
     7 2. Add it to a page using markup
    88
    99Result: fatal javascript error in dojo.addClass, "node" is null.
     
    1212
    1313Through testing on Firebug, you can see the problem:
    14 
     14{{{
    1515x = new dojo.NodeList;
    1616x.push(1,2,3,4,5);
    1717x.map(function(i){return i+1;})
    18 
    19 ... expected result, and what you get if you have regular, un-built dojo loaded: [2,3,4,5,6]
     18}}}
     19... expected result, and what you get if you have regular, un-built dojo loaded: {{{[2,3,4,5,6]}}}
    2020
    2121... result when you have a build:
    22 [1,2,3,4,5]
     22{{{[1,2,3,4,5]}}}
    2323
    2424Note that dojo.map works correctly--NodeList.map has the issue.