projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd48b41
)
Roo/data/SortTypes.js
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Apr 2016 09:46:43 +0000
(17:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Apr 2016 09:46:43 +0000
(17:46 +0800)
Roo/data/SortTypes.js
patch
|
blob
|
history
diff --git
a/Roo/data/SortTypes.js
b/Roo/data/SortTypes.js
index
1f8fbb8
..
0b7d139
100644
(file)
--- a/
Roo/data/SortTypes.js
+++ b/
Roo/data/SortTypes.js
@@
-81,7
+81,9
@@
Roo.data.SortTypes = {
*/
asFloat : function(s) {
var val = parseFloat(String(s).replace(/,/g, ""));
- if(isNaN(val)) val = 0;
+ if(isNaN(val)) {
+ val = 0;
+ }
return val;
},