Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created July 16, 2010 17:29
Show Gist options
  • Save canonic-epicure/478657 to your computer and use it in GitHub Desktop.
Save canonic-epicure/478657 to your computer and use it in GitHub Desktop.
Class("My.Class", {
use: ["Some.Module"], // trigger async loading
body : function (m) {
// m == this == My.Class here
// class will be ready here
}})
// class isn't yet "ready" here, its only a stub (module), thats why it gives "module can't be instantiated"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment