       @$el.removeData "plugin_#{pluginName}";
 
     hook: (hookName) ->
-      if options[hookName]?
-        options[hookName].call @element
+      if @settings[hookName]?
+        @settings[hookName].call @element
 
   $.fn[pluginName] = (options) ->
     @each ->


  if !window.cancelAnimationFrame
    window.cancelAnimationFrame = (id) ->
      clearTimeout(id)
          el.style[t] = 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)'
          support3d = window.getComputedStyle el
          support3d = support3d.getPropertyValue transforms[t]
			document.body.removeChild(el)
      if support3d? then support3d isnt 'none' else false

    destroy: ->
