Skip to content

Instantly share code, notes, and snippets.

@ipassynk
Last active December 20, 2015 11:48
Show Gist options
  • Save ipassynk/6125750 to your computer and use it in GitHub Desktop.
Save ipassynk/6125750 to your computer and use it in GitHub Desktop.
Create Dojo class in runtime
var clazz = "dojo class name";
dojo["require"](clazz);
var ctor = dojo.getObject(clazz);
var widget = new ctor(artts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment