code: function(rawValue) {
  			// Null and undefined values first
  			if (rawValue === null || typeof(rawValue) === 'undefined') {
  				return NaN;
  			}
  			// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values
  			if (typeof(rawValue) === 'number' && !isFinite(rawValue)) {
  				return NaN;
  			}
  			// If it is in fact an object, dive in one more level
  			if (typeof(rawValue) === 'object') {
  				if ((rawValue instanceof Date) || (rawValue.isValid)) {
  					return rawValue;
  				}
  				return this.getRightValue(this.isHorizontal() ? rawValue.x : rawValue.y);
  			}
  
  			// Value is good, return it
  			return rawValue;
  		}
docs: Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not