UNPKG
avalon2
Version:
latest (2.2.10)
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.17
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
an elegant efficient express mvvm framework
github.com/RubyLouvre/avalon
RubyLouvre/avalon
avalon2
/
src
/
dom
/
val
/
getDuplexType.js
9 lines
(8 loc)
•
244 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ rcheckedType }
from
'../rcheckedType'
export
function
getDuplexType
(
elem
) {
var
ret = elem.
tagName
.
toLowerCase
()
if
(ret ===
'input'
) {
return
rcheckedType.
test
(elem.
type
) ?
'checked'
: elem.
type
}
return
ret }