         if instance = $.data el, baseName
           return instance
         else
-          $.data el, baseName, new Hexaflip el, sets, options
-
+          $.data el, baseName, new HexaFlip el, sets, options
+



if window.jQuery? or window.$?.data?
  $.fn.hexaflip = (sets, options) ->
    return @ unless css.transform

    if typeof sets is 'string'
      methodName = sets
      unless typeof Hexaflip::[methodName] is 'function'
        console.warn "#{ baseName }: No such method `#{ methodName }`" if devMode
        return @


  touchSensitivity: .7


class window.HexaFlip

  className: baseName.toLowerCase()
  _urlRx: /^((https?:)?\/\/)|(data:)/
  _faceNames: ['front', 'bottom', 'back', 'top', 'left', 'right']
  _faceSequence: @::_faceNames.slice 0, 4
