Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
if(!dojo._hasResource["dijit.form.CurrencyTextBox"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2
dojo._hasResource["dijit.form.CurrencyTextBox"] = true;
3
dojo.provide("dijit.form.CurrencyTextBox");
4
 
5
//FIXME: dojo.experimental throws an unreadable exception?
6
//dojo.experimental("dijit.form.CurrencyTextBox");
7
 
8
dojo.require("dojo.currency");
9
dojo.require("dijit.form.NumberTextBox");
10
 
11
dojo.declare(
12
	"dijit.form.CurrencyTextBox",
13
	dijit.form.NumberTextBox,
14
	{
15
		// code: String
16
		//		the ISO4217 currency code, a three letter sequence like "USD"
17
		//		See http://en.wikipedia.org/wiki/ISO_4217
18
		currency: "",
19
 
20
		regExpGen: dojo.currency.regexp,
21
		format: dojo.currency.format,
22
		parse: dojo.currency.parse,
23
 
24
		postMixInProperties: function(){
25
			if(this.constraints === dijit.form.ValidationTextBox.prototype.constraints){
26
				// declare a constraints property on 'this' so we don't overwrite the shared default object in 'prototype'
27
				this.constraints = {};
28
			}
29
			this.constraints.currency = this.currency;
30
			dijit.form.CurrencyTextBox.superclass.postMixInProperties.apply(this, arguments);
31
		}
32
	}
33
);
34
 
35
}