adding upload symbol

This commit is contained in:
rlx 2011-08-24 02:37:38 +00:00
parent a8b9e1fd2c
commit 297ac0a141
2 changed files with 17 additions and 9 deletions

View 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

View file

@ -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.forEach(col, function(val, key) {
clone[key] = ['array', 'object'].indexOf(Ox.typeOf(val)) > -1
? Ox.clone(val) : val;
});
return clone;
Ox.clone = function(col, deep) {
var ret;
if (deep) {
ret = Ox.isArray(col) ? [] : {};
Ox.forEach(col, function(val, key) {
ret[key] = ['array', 'object'].indexOf(Ox.typeOf(val)) > -1
? Ox.clone(val) : val;
});
} else {
ret = Ox.isArray(col) ? col.slice() : Ox.extend({}, col);
}
return ret;
};
/*@