Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F885937
integers.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
660 B
Subscribers
None
integers.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.dtl.filter.integers"
]){
dojo
.
_hasResource
[
"dojox.dtl.filter.integers"
]
=
true
;
dojo
.
provide
(
"dojox.dtl.filter.integers"
);
dojo
.
mixin
(
dojox
.
dtl
.
filter
.
integers
,{
add
:
function
(
_1
,
_2
){
_1
=
parseInt
(
_1
,
10
);
_2
=
parseInt
(
_2
,
10
);
return
isNaN
(
_2
)
?
_1
:
_1
+
_2
;
},
get_digit
:
function
(
_3
,
_4
){
_3
=
parseInt
(
_3
,
10
);
_4
=
parseInt
(
_4
,
10
)
-
1
;
if
(
_4
>=
0
){
_3
+=
""
;
if
(
_4
<
_3
.
length
){
_3
=
parseInt
(
_3
.
charAt
(
_4
),
10
);
}
else
{
_3
=
0
;
}
}
return
(
isNaN
(
_3
)
?
0
:
_3
);
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 6, 20:59 (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26120
Default Alt Text
integers.js (660 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment