UNPKG
can-simple-dom
Version:
latest (1.7.1)
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.3.0-pre.3
0.3.0-pre.2
0.3.0-pre.1
0.3.0-pre.0
0.2.23
0.2.22
0.2.21
0.2.20
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
A simple JS DOM.
github.com/canjs/can-simple-dom
canjs/can-simple-dom
can-simple-dom
/
lib
/
document
/
utils.js
14 lines
(12 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
exports
.
propToAttr
=
function
(
Element, name
){
Object
.
defineProperty
(
Element
.
prototype
, name, {
configurable
:
true
,
enumerable
:
true
,
get
:
function
(
){
return
this
.
getAttribute
(name); },
set
:
function
(
val
){
this
.
setAttribute
(name, val); } }); };