aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 6d42bbc2..d7faa1e8 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -40,6 +40,7 @@
* - [eq()](http://api.jquery.com/eq/)
* - [hasClass()](http://api.jquery.com/hasClass/)
* - [parent()](http://api.jquery.com/parent/)
+ * - [prop()](http://api.jquery.com/prop/)
* - [remove()](http://api.jquery.com/remove/)
* - [removeAttr()](http://api.jquery.com/removeAttr/)
* - [removeClass()](http://api.jquery.com/removeClass/)
@@ -287,6 +288,14 @@ forEach({
}
},
+ prop: function(element, name, value) {
+ if (isDefined(value)) {
+ element[name] = value;
+ } else {
+ return element[name];
+ }
+ },
+
text: extend((msie < 9)
? function(element, value) {
// NodeType == 3 is text node