Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 2 | "dojo/_base/declare" |
---|
| 3 | ], function(declare){ |
---|
| 4 | |
---|
| 5 | // module: |
---|
| 6 | // dojox/mobile/dh/StringDataSource |
---|
| 7 | |
---|
| 8 | return declare("dojox.mobile.dh.StringDataSource", null, { |
---|
| 9 | // summary: |
---|
| 10 | // A component that simply returns the given text. |
---|
| 11 | |
---|
| 12 | text: "", |
---|
| 13 | |
---|
| 14 | constructor: function(/*String*/ text){ |
---|
| 15 | // summary: |
---|
| 16 | // Creates a new instance of the class. |
---|
| 17 | this.text = text; |
---|
| 18 | }, |
---|
| 19 | |
---|
| 20 | getData: function(){ |
---|
| 21 | // summary: |
---|
| 22 | // Returns the given text. |
---|
| 23 | return this.text; |
---|
| 24 | } |
---|
| 25 | }); |
---|
| 26 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.