UNPKG
silk-gui
Version:
latest (0.5.3)
0.5.3
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0
0.0.2
0.0.1
GUI for developers and Node OS
github.com/Silk-GUI/Silk
Silk-GUI/Silk
silk-gui
/
bower_components
/
vue
/
src
/
directives
/
text.js
15 lines
(11 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
_ =
require
(
'../util'
)
module
.
exports
= {
bind
:
function
(
) {
this
.
attr
=
this
.
el
.
nodeType
===
3
?
'nodeValue'
:
'textContent'
},
update
:
function
(
value
) {
this
.
el
[
this
.
attr
] = _.
toString
(value) } }