forked from 0x2620/oxjs
updates for html parsing, request handling, and editable elements
This commit is contained in:
parent
a949ad2cf4
commit
62f8a907ea
6 changed files with 153 additions and 69 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue