Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64509285
script.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, May 27, 09:41
Size
1 KB
Mime Type
text/html
Expires
Wed, May 29, 09:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17914459
Attached To
R2664 SHRINE MedCo Fork
script.js
View Options
/* */
define
(
[
"../core"
,
"../var/document"
,
"../ajax"
],
function
(
jQuery
,
document
)
{
// Install script dataType
jQuery
.
ajaxSetup
(
{
accepts
:
{
script
:
"text/javascript, application/javascript, "
+
"application/ecmascript, application/x-ecmascript"
},
contents
:
{
script
:
/\b(?:java|ecma)script\b/
},
converters
:
{
"text script"
:
function
(
text
)
{
jQuery
.
globalEval
(
text
);
return
text
;
}
}
}
);
// Handle cache's special case and crossDomain
jQuery
.
ajaxPrefilter
(
"script"
,
function
(
s
)
{
if
(
s
.
cache
===
undefined
)
{
s
.
cache
=
false
;
}
if
(
s
.
crossDomain
)
{
s
.
type
=
"GET"
;
}
}
);
// Bind script tag hack transport
jQuery
.
ajaxTransport
(
"script"
,
function
(
s
)
{
// This transport only deals with cross domain requests
if
(
s
.
crossDomain
)
{
var
script
,
callback
;
return
{
send
:
function
(
_
,
complete
)
{
script
=
jQuery
(
"<script>"
).
prop
(
{
charset
:
s
.
scriptCharset
,
src
:
s
.
url
}
).
on
(
"load error"
,
callback
=
function
(
evt
)
{
script
.
remove
();
callback
=
null
;
if
(
evt
)
{
complete
(
evt
.
type
===
"error"
?
404
:
200
,
evt
.
type
);
}
}
);
// Use native DOM manipulation to avoid our domManip AJAX trickery
document
.
head
.
appendChild
(
script
[
0
]
);
},
abort
:
function
()
{
if
(
callback
)
{
callback
();
}
}
};
}
}
);
}
);
Event Timeline
Log In to Comment