Author: damoxc
Revision: 5701
Log:
ensure that the value is a number
Diff:
Modified: trunk/deluge/ui/web/js/ext-extensions-debug.js
===================================================================
--- trunk/deluge/ui/web/js/ext-extensions-debug.js 2009-08-21 00:57:08 UTC
(rev 5700)
+++ trunk/deluge/ui/web/js/ext-extensions-debug.js 2009-08-21 01:06:22 UTC
(rev 5701)
@@ -412,7 +412,7 @@
if(!this.allowDecimals || this.decimalPrecision == -1 || nan ||
!value){
return nan ? '' : value;
}
- return value.toFixed(this.decimalPrecision);
+ return Number(value).toFixed(this.decimalPrecision);
}
});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---