Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#17439 closed defect (fixed)

at() in params is not effective for widgets with dojox/mvc/_Controller mixed in

Reported by: Akira Sudoh Owned by: Ed Chatelain
Priority: undecided Milestone: 1.9.2
Component: DojoX MVC Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:

Description

at() in params (1st parameter of widget) is not effective for widgets with dojox/mvc/_Controller mixed in. For example, console output of below code shows undefined while it should show "Foo":

<html>
    <head>
        <title>None</title>
        <script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojo/dojo.js" type="text/javascript" data-dojo-config="parseOnLoad: 0, async: 1"></script>
        <script type="text/javascript">
            require([
                "dojo/_base/declare",
                "dojo/Stateful",
                "dijit/_WidgetBase",
                "dojox/mvc/_Controller",
                "dojox/mvc/at",
                "dojo/domReady!"
            ], function(declare, Stateful, _WidgetBase, _Controller, at){
                var model = new Stateful(),
                    w = new (declare([_WidgetBase, _Controller], {}))({
                        foo: at(model, "foo")
                    });
                w.startup();
                model.set("foo", "Foo");
                console.log(w.get("foo")); // Should show "Foo", but shows undefined
            });
        </script>
    </head>
    <body></body>
</html>

Change History (5)

comment:1 Changed 6 years ago by Ed Chatelain

Owner: set to Ed Chatelain
Status: newassigned

comment:3 Changed 6 years ago by Akira Sudoh <asudoh@…>

Resolution: fixed
Status: assignedclosed

In bd9137e0b1039bd01786ab38387579fce4288125/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:4 Changed 6 years ago by Ed Chatelain <ed.chatelain@…>

In 0e8eac74abf5f8c64678556c99d43ec36e1fdd47/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:5 Changed 6 years ago by Ed Chatelain

Milestone: tbd1.9.2
Note: See TracTickets for help on using tickets.