Astro.createValidator({
  name: 'number',
  validate: function() {
    return !_.isNaN(value) && _.isNumber(value);
  },
  events: {
    validationerror: function(e) {
      var fieldName = e.data.fieldName;

      e.data.message = 'The value of the "' + fieldName +
        '" field has to be a number';
    }
  }
});

Astro.createValidator({
  name: 'number',
  validate: function(fieldValue) {
    return !_.isNaN(fieldValue) && _.isNumber(fieldValue);
  },
  events: {
    validationerror: function(e) {
      var fieldName = e.data.fieldName;

      e.data.message = 'The value of the "' + fieldName +
        '" field has to be a number';
    }
  }
});

Fix lack of value variable in Number validator
Fix lack of value variable in Number validator
