Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1160348 - merge pull request #29868 from lodr:bug-1160348-nan-on-…
Browse files Browse the repository at this point in the history
…paste to mozilla-b2g:master
  • Loading branch information
mozilla-autolander-deprecated committed May 5, 2015
2 parents d454015 + 1921a3e commit 42dc5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/costcontrol/js/settings/limitdialog.js
Expand Up @@ -122,7 +122,7 @@ function dataLimitConfigurer(guiWidget, settings, viewManager, widgetRoot) {
dataLimitInput.addEventListener('input',
function cc_ondataLimitInputChange(evt) {
var lowLimitValue = evt.target.value.trim();
var isNumericLowLimit = !Number.isNaN(lowLimitValue);
var isNumericLowLimit = !Number.isNaN(Number(lowLimitValue));

if (isNumericLowLimit &&
lowLimitValue.indexOf('.0') !== lowLimitValue.length - 2 &&
Expand Down

0 comments on commit 42dc5f0

Please sign in to comment.