Last change
on this file since 274 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
777 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/kernel", // dojo.experimental lang.mixin |
---|
3 | ".", |
---|
4 | "dojo/_base/lang", // dojo.experimental lang.mixin |
---|
5 | "./robot", |
---|
6 | "dojo/robotx", |
---|
7 | "dojo/_base/window" // dojo.global |
---|
8 | ], function(dojo, dijit_, lang){ |
---|
9 | |
---|
10 | // module: |
---|
11 | // dijit/robotx |
---|
12 | // summary: |
---|
13 | // Code needed by robot test harness |
---|
14 | |
---|
15 | |
---|
16 | //WARNING: This module depends on GLOBAL dijit being set for v1.5 code; therefore the lexical variable that |
---|
17 | //references "dijit" has been renamed to "dijit_" |
---|
18 | |
---|
19 | dojo.experimental("dijit.robotx"); |
---|
20 | |
---|
21 | var __updateDocument = doh.robot._updateDocument; |
---|
22 | |
---|
23 | lang.mixin(doh.robot,{ |
---|
24 | _updateDocument: function(){ |
---|
25 | __updateDocument(); |
---|
26 | var win = dojo.global; |
---|
27 | if(win["dijit"]){ |
---|
28 | window.dijit = win.dijit; // window reference needed for IE |
---|
29 | } |
---|
30 | } |
---|
31 | }); |
---|
32 | |
---|
33 | return dijit_; |
---|
34 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.