Changes between Initial Version and Version 1 of Ticket #13778, comment 9


Ignore:
Timestamp:
Jan 7, 2012, 8:48:50 AM (10 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13778, comment 9

    initial v1  
    1 The canonical way to resolve an already loaded MID is to use require() without brackets:
     1The canonical way to resolve an MID for an already loaded module is to use require() without brackets:
    22
    33{{{
     
    88
    99{{{
    10 var mid;
    11 try{ mid = require("dijit/form/Button"); }catch(){}
    12 if(!mid){ throw error }
     10var module;
     11try{ module = require("dijit/form/Button"); }catch(){}
     12if(!module){ throw error }
    1313}}}