Fix number parsing in localStorage

This commit is contained in:
Lorenz Hübschle-Schneider 2014-12-22 22:17:15 +01:00 committed by Tor Hveem
parent c422c2df4d
commit 48582cff3f

View file

@ -33,7 +33,7 @@ ls.factory("$store", ["$parse", function($parse){
if (val === 'false'){
val = false;
}
if (parseFloat(val) === val && !angular.isObject(val)) {
if (parseFloat(val) == val && !angular.isObject(val)) {
val = parseFloat(val);
}
} catch(e){