git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
docs
/
source
/
Ext-more.html
diff --git
a/docs/source/Ext-more.html
b/docs/source/Ext-more.html
index
099cf7c
..
4f21c01
100644
(file)
--- a/
docs/source/Ext-more.html
+++ b/
docs/source/Ext-more.html
@@
-6,7
+6,7
@@
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
</head>
\r
<body onload="prettyPrint();">
\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
</head>
\r
<body onload="prettyPrint();">
\r
- <pre class="prettyprint lang-js">/**
+ <pre class="prettyprint lang-js">
<div id="cls-Ext"></div>
/**
* @class Ext
*/
* @class Ext
*/
@@
-60,7
+60,7
@@
Ext.apply(Ext, function(){
* @return {Number} Value, if numeric, else defaultValue
*/
num : function(v, defaultValue){
* @return {Number} Value, if numeric, else defaultValue
*/
num : function(v, defaultValue){
- v = Number(Ext.isEmpty(v) || Ext.is
Boolean(v
) ? NaN : v);
+ v = Number(Ext.isEmpty(v) || Ext.is
Array(v) || Ext.isBoolean(v) || (Ext.isString(v) && v.trim().length == 0
) ? NaN : v);
return isNaN(v) ? defaultValue : v;
},
return isNaN(v) ? defaultValue : v;
},
@@
-334,7
+334,7
@@
ImageComponent = Ext.extend(Ext.BoxComponent, {
* @return {Number} The mean.
*/
mean : function(arr){
* @return {Number} The mean.
*/
mean : function(arr){
- return
Ext.sum(arr) / arr.length
;
+ return
arr.length > 0 ? Ext.sum(arr) / arr.length : undefined
;
},
<div id="method-Ext-sum"></div>/**
},
<div id="method-Ext-sum"></div>/**
@@
-545,7
+545,7
@@
Ext.zip(
};
}());
};
}());
-/**
+
<div id="cls-Function"></div>
/**
* @class Function
* These functions are available on every Function object (any JavaScript function).
*/
* @class Function
* These functions are available on every Function object (any JavaScript function).
*/
@@
-585,7
+585,7
@@
sayGoodbye('Fred'); // both alerts show
});
});
-/**
+
<div id="cls-String"></div>
/**
* @class String
* These functions are available as static methods on the JavaScript String object.
*/
* @class String
* These functions are available as static methods on the JavaScript String object.
*/