Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391310
robot.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
robot.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojo.robot"
]){
dojo
.
_hasResource
[
"dojo.robot"
]
=
true
;
dojo
.
provide
(
"dojo.robot"
);
dojo
.
experimental
(
"dojo.robot"
);
dojo
.
require
(
"doh.robot"
);
(
function
(){
dojo
.
mixin
(
doh
.
robot
,{
_resolveNode
:
function
(
n
){
if
(
typeof
n
==
"function"
){
n
=
n
();
}
return
n
?
dojo
.
byId
(
n
)
:
null
;
},
_scrollIntoView
:
function
(
_1
){
_1
.
scrollIntoView
(
false
);
},
_position
:
function
(
n
){
return
dojo
.
position
(
n
,
false
);
},
scrollIntoView
:
function
(
_2
,
_3
){
doh
.
robot
.
sequence
(
function
(){
doh
.
robot
.
_scrollIntoView
(
doh
.
robot
.
_resolveNode
(
_2
));
},
_3
);
},
mouseMoveAt
:
function
(
_4
,
_5
,
_6
,
_7
,
_8
){
doh
.
robot
.
_assertRobot
();
_6
=
_6
||
100
;
this
.
sequence
(
function
(){
_4
=
doh
.
robot
.
_resolveNode
(
_4
);
doh
.
robot
.
_scrollIntoView
(
_4
);
var
_9
=
doh
.
robot
.
_position
(
_4
);
if
(
_8
===
undefined
){
_7
=
_9
.
w
/
2
;
_8
=
_9
.
h
/
2
;
}
var
x
=
_9
.
x
+
_7
;
var
y
=
_9
.
y
+
_8
;
doh
.
robot
.
_mouseMove
(
x
,
y
,
false
,
_6
);
},
_5
,
_6
);
}});
})();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 20:21 (23 h, 43 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24967
Default Alt Text
robot.js (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment