Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F15625285
common.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
common.js
View Options
if
(
!
dojo
.
_hasResource
[
"dojo.dnd.common"
]){
//_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo
.
_hasResource
[
"dojo.dnd.common"
]
=
true
;
dojo
.
provide
(
"dojo.dnd.common"
);
dojo
.
dnd
.
_copyKey
=
navigator
.
appVersion
.
indexOf
(
"Macintosh"
)
<
0
?
"ctrlKey"
:
"metaKey"
;
dojo
.
dnd
.
getCopyKeyState
=
function
(
e
)
{
// summary: abstracts away the difference between selection on Mac and PC,
// and returns the state of the "copy" key to be pressed.
// e: Event: mouse event
return
e
[
dojo
.
dnd
.
_copyKey
];
// Boolean
};
dojo
.
dnd
.
_uniqueId
=
0
;
dojo
.
dnd
.
getUniqueId
=
function
(){
// summary: returns a unique string for use with any DOM element
var
id
;
do
{
id
=
"dojoUnique"
+
(
++
dojo
.
dnd
.
_uniqueId
);
}
while
(
dojo
.
byId
(
id
));
return
id
;
};
dojo
.
dnd
.
_empty
=
{};
dojo
.
dnd
.
isFormElement
=
function
(
/*Event*/
e
){
// summary: returns true, if user clicked on a form element
var
t
=
e
.
target
;
if
(
t
.
nodeType
==
3
/*TEXT_NODE*/
){
t
=
t
.
parentNode
;
}
return
" button textarea input select option "
.
indexOf
(
" "
+
t
.
tagName
.
toLowerCase
()
+
" "
)
>=
0
;
// Boolean
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 04:50 (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25488
Default Alt Text
common.js (1 KB)
Attached To
Mode
rZEDHG ZedLegacy
Attached
Detach File
Event Timeline
Log In to Comment