forked from dojo/dijit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
robotx.js
25 lines (21 loc) · 781 Bytes
/
robotx.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
define([
"dojo/_base/kernel", // kernel.experimental
"dojo/robotx" // includes doh/robot, dojo/robot, and dojo/robotx, all of which affect and return doh/robot module
], function(kernel, robot){
// module:
// dijit/robotx
// summary:
// Loads doh/robot, dojo/robot, dojo/robotx, and
// sets dijit global in main window to point to the dijit loaded in the iframe.
// TODO: Remove for 2.0. Tests shouldn't reference a dijit global at all, and should load dojo/robotx
// in preference to this file.
kernel.experimental("dijit.robotx");
var __updateDocument = robot._updateDocument;
robot._updateDocument = function(){
__updateDocument();
var win = kernel.global;
if(win.dijit){
window.dijit = win.dijit; // window reference needed for IE
}
};
});