bugfix. validating NaN correct now

This commit is contained in:
Teja 2015-07-08 11:25:04 +02:00
parent fc4f2340fe
commit 14fb9b9665

View file

@ -397,7 +397,7 @@ Snap.plugin(function (Snap, Element, Paper, global) {
var d = '';
var valid = function (val) {
return !(typeof (val) !== 'number' || val === Infinity || val < 0);
return (isFinite(val) && (val >= 0));
};
// Possibly the cubed root of 6, but 1.81 works best