forked from 0x2620/oxjs
add Ox.Editable
This commit is contained in:
parent
f9360db0b4
commit
db4b33cf24
6 changed files with 121 additions and 48 deletions
17
source/Ox.js
17
source/Ox.js
|
|
@ -28,6 +28,13 @@ Some conventions:
|
|||
ret return value
|
||||
v value (of a key/value pair)
|
||||
val value (of a key/value pair)
|
||||
Indentation
|
||||
var a = 1,
|
||||
b = 2,
|
||||
c = 3;
|
||||
Obj.fn1()
|
||||
.fn2()
|
||||
.fn3();
|
||||
*/
|
||||
|
||||
// todo: check http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
|
||||
|
|
@ -760,8 +767,8 @@ Ox.max <f> Returns the maximum value of a collection
|
|||
> Ox.max('123')
|
||||
3
|
||||
@*/
|
||||
Ox.max = function(obj) {
|
||||
return Math.max.apply(Math, Ox.values(obj));
|
||||
Ox.max = function(col) {
|
||||
return Math.max.apply(Math, Ox.values(col));
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
@ -773,8 +780,8 @@ Ox.min <f> Returns the minimum value of a collection
|
|||
> Ox.min('123')
|
||||
1
|
||||
@*/
|
||||
Ox.min = function(obj) {
|
||||
return Math.min.apply(Math, Ox.values(obj));
|
||||
Ox.min = function(col) {
|
||||
return Math.min.apply(Math, Ox.values(col));
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
@ -4594,6 +4601,8 @@ Ox.isEqual <function> Returns true if two values are equal
|
|||
false
|
||||
> Ox.isEqual(0, 0)
|
||||
true
|
||||
> Ox.isEqual({}, {})
|
||||
true
|
||||
> Ox.isEqual({a: 1, b: 2, c: 3}, {c: 3, b: 2, a: 1})
|
||||
true
|
||||
> Ox.isEqual({a: 1, b: [2, 3], c: {d: '4'}}, {a: 1, b: [2, 3], c: {d: '4'}})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue