adding upload symbol
This commit is contained in:
parent
a8b9e1fd2c
commit
297ac0a141
2 changed files with 17 additions and 9 deletions
4
source/Ox.UI/themes/classic/svg/symbolUpload.svg
Normal file
4
source/Ox.UI/themes/classic/svg/symbolUpload.svg
Normal file
|
@ -0,0 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256">
|
||||
<line x1="128" y1="240" x2="128" y2="128" stroke="#404040" stroke-width="96"/>
|
||||
<polygon points="0,128 256,128 128,0" fill="#404040"/>
|
||||
</svg>
|
After Width: | Height: | Size: 214 B |
16
source/Ox.js
16
source/Ox.js
|
@ -289,21 +289,25 @@ Ox.avg = function(obj) {
|
|||
};
|
||||
|
||||
/*@
|
||||
Ox.clone <f> Returns a (deep) copy of an object or array
|
||||
Ox.clone <f> Returns a (shallow or deep) copy of an object or array
|
||||
> (function() { a = ['val']; b = Ox.clone(a); a[0] = null; return b[0]; }())
|
||||
'val'
|
||||
> (function() { a = {key: 'val'}; b = Ox.clone(a); a.key = null; return b.key; }())
|
||||
'val'
|
||||
@*/
|
||||
|
||||
Ox.clone = function(col) {
|
||||
// return Ox.isArray(col) ? col.slice() : Ox.extend({}, col);
|
||||
var clone = Ox.isArray(col) ? [] : {};
|
||||
Ox.clone = function(col, deep) {
|
||||
var ret;
|
||||
if (deep) {
|
||||
ret = Ox.isArray(col) ? [] : {};
|
||||
Ox.forEach(col, function(val, key) {
|
||||
clone[key] = ['array', 'object'].indexOf(Ox.typeOf(val)) > -1
|
||||
ret[key] = ['array', 'object'].indexOf(Ox.typeOf(val)) > -1
|
||||
? Ox.clone(val) : val;
|
||||
});
|
||||
return clone;
|
||||
} else {
|
||||
ret = Ox.isArray(col) ? col.slice() : Ox.extend({}, col);
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
Loading…
Reference in a new issue