UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

8 lines (7 loc) 311 B
define(["dojo", "dijit/Calendar"], function(dojo, calendar){ // a coolio/calendarAsync-created calendar will be created in the cdojo and cdijit instances // but, during dev, this is a detail we can ignore...the config makes in just work return function(id){ return new calendar({}, dojo.byId(id)); }; });