1
0
Fork 0
forked from 0x2620/oxjs

updates for html parsing, request handling, and editable elements

This commit is contained in:
rlx 2011-10-27 18:50:23 +00:00
commit 62f8a907ea
6 changed files with 153 additions and 69 deletions

View file

@ -14,6 +14,21 @@ Ox.extend = function() {
return obj;
};
/*@
Ox.keyOf <f> undocumented
@*/
Ox.keyOf = function(obj, val) {
var key;
Ox.forEach(obj, function(v, k) {
if (v == val) {
key = k;
return false;
}
});
return key;
};
/*@
Ox.serialize <f> Parses an object into query parameters
> Ox.serialize({a: 1, b: 2, c: 3})