source: Dev/trunk/src/client/util/docscripts/tests/declare_amd.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 626 bytes
Line 
1define("util/docscripts/tests/declare_amd", ["dojo", "dijit", "dijit/_Widget"], function(dojo, dijit){
2
3        dojo.declare("foo.Bar", [dijit._Widget], { // util.docscripts.tests.declare_amd
4                // summary: A Thinger
5                // description: Some Long Thinger
6                //
7                // boo: Integer
8                boo: 10,
9               
10                constructor: function(args){
11                        // summary: The constructor
12                        dojo.mixin(this, args);
13                },
14               
15                aMemberFn: function(/* String? */a){
16                        // summary: Does something
17                        // a: String?
18                        //              Foo.
19                        return a || ""; // String
20                },
21               
22                postCreate: function(){
23                        this.inherited(arguments);
24                        this.boo *= 2;
25                }
26               
27        });
28       
29        return foo.Bar;
30});
31       
Note: See TracBrowser for help on using the repository browser.