aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-24 16:47:11 -0700
committerMisko Hevery2010-03-24 16:47:11 -0700
commitf29f6a47c4d81c5b8e365a3dae307159f1b12968 (patch)
tree0f0c98e1a5effc60fc61c7908b4e6870c729c290 /src/jqLite.js
parent0c42eb9909d554807549cd3394e0ea0c715cc2d1 (diff)
downloadangular.js-f29f6a47c4d81c5b8e365a3dae307159f1b12968.tar.bz2
fixed .value vs attr(value) access
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 2ac3f6c9..2132bfc1 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -179,6 +179,13 @@ JQLite.prototype = {
return this[0].textContent;
},
+ val: function(value) {
+ if (isDefined(value)) {
+ this[0].value = value;
+ }
+ return this[0].value;
+ },
+
html: function(value) {
if (isDefined(value)) {
this[0].innerHTML = value;