 _ = require "underscore"
 Transform = require "./transform"
 p = require "../../core/properties"
+{logger} = require "../../core/logging"
 
 class Interpolator extends Transform.Model
 

  sort: (descending = false) ->
    # Verify that all necessary objects exist...
    if typeof(@get('x')) != typeof(@get('y'))
      # ToDo: Throw a resonable error here
      return

    if typeof(@get('x')) == 'object'
      if @get('x').length != @get('y').length
        # ToDo: Throw a resonable error here
        return
    else
      if @get('x').length == 0

        return

      if @get('data') == null
        throw Error('If the x and y parameters are not specified as an array, the data parameter is reqired.')
        return

    # Stop processing this if the dirty flag is not set
