Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F15620120
util.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
821 B
Referenced Files
None
Subscribers
None
util.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
[
"dojox.lang.functional.util"
]){
dojo
.
_hasResource
[
"dojox.lang.functional.util"
]
=
true
;
dojo
.
provide
(
"dojox.lang.functional.util"
);
dojo
.
require
(
"dojox.lang.functional.lambda"
);
(
function
(){
var
df
=
dojox
.
lang
.
functional
;
dojo
.
mixin
(
df
,{
inlineLambda
:
function
(
_1
,
_2
,
_3
){
var
s
=
df
.
rawLambda
(
_1
);
if
(
_3
){
df
.
forEach
(
s
.
args
,
_3
);
}
var
ap
=
typeof
_2
==
"string"
,
n
=
ap
?
s
.
args
.
length
:
Math
.
min
(
s
.
args
.
length
,
_2
.
length
),
a
=
new
Array
(
4
*
n
+
4
),
i
,
j
=
1
;
for
(
i
=
0
;
i
<
n
;
++
i
){
a
[
j
++
]
=
s
.
args
[
i
];
a
[
j
++
]
=
"="
;
a
[
j
++
]
=
ap
?
_2
+
"["
+
i
+
"]"
:
_2
[
i
];
a
[
j
++
]
=
","
;
}
a
[
0
]
=
"("
;
a
[
j
++
]
=
"("
;
a
[
j
++
]
=
s
.
body
;
a
[
j
]
=
"))"
;
return
a
.
join
(
""
);
}});
})();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 02:30 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24969
Default Alt Text
util.js (821 B)
Attached To
Mode
rZED Zed
Attached
Detach File
Event Timeline
Log In to Comment