       -1
     else
       0
-  
+
   # Creates an Array.sort compatible callback function from the provided
   #  conversion function.
   makeSortFn: (fn, reverse) ->

_touch = navigator.userAgent.match(/(iPhone|iPod|iPad|Android)/) isnt null
_logging = !_touch && window.console
  
window.ST = {
  _history: []
  
  # Converts a string to a function returns the named attribute of it's first
  # parameter, or (this) object.
  # 
  # If given attribute is a function, it will be called with any additional
  # arguments provided to stringToProc, and the result returned.
  stringToProc: (string, passArgs = []) ->

      ST.stringToProc object
    else
      ST.error 'Could not convert object to Proc'

  # Finds class with given name in this namespace or a parent namespace
  getClass: (className) ->
    namespace = this
