Skip to content
Browse files

Restore comments on dojo/cldr/monetary

  • Loading branch information...
1 parent 59bdc63 commit 95fb2fcb460c3ee18cf93e8900a92c36a0de971c Kitson Kelly committed Mar 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 dojo/cldr/monetary.rst
View
4 dojo/cldr/monetary.rst
@@ -16,11 +16,15 @@ The following example prints out the monetary data (places and round) for EUR (E
require(["dojo/cldr/monetary", "dojo/dom", "dojo/on", "dojo/domReady!"],
function(cldrMonetary, dom, on){
on(dom.byId("monetaryButton"), "click", function(){
+ // the ISO 4217 currency code for Euro:
var iso = "EUR";
+ // get monetary data:
var cldrMonetaryData = cldrMonetary.getData(iso);
+ // print out places:
dom.byId("places").innerHTML = "Places: " + cldrMonetaryData.places;
+ // proint out round:
dom.byId("round").innerHTML = "Round: " + cldrMonetaryData.round;
});
});

0 comments on commit 95fb2fc

Please sign in to comment.
Something went wrong with that request. Please try again.