Skip to content

Commit

Permalink
Fixing number launch option arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Dec 30, 2012
1 parent 8da36ca commit f614957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gf/launchoptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ gf.LaunchOptions.prototype.getDefaultValue = function(name) {
* @return {number?} Number value.
*/
gf.LaunchOptions.prototype.getNumber = function(name) {
var defaultValue = /** @type {number} */ (this.getDefaultValue(name));
var defaultValue = parseFloat(this.getDefaultValue(name));
var value = this.queryData.get(name, defaultValue);
if (!goog.isDef(value) || !value || !value.length) {
if (!goog.isDef(value)) {
return defaultValue;
}
return Number(value);
Expand Down

0 comments on commit f614957

Please sign in to comment.