source: Dev/trunk/src/client/dojox/mobile/dh/StringDataSource.js @ 529

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

Added Dojo 1.9.3 release.

File size: 481 bytes
Line 
1define([
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.