       afterClose: $.noop
 
     init: (options) ->
-      options = $.extend(true, methods.defaults, options)
+      options = $.extend({}, methods.defaults, options)
+      console.log options
       options.tooltipHeight = 0
       options.tooltipWidth = 0
       $(this).popover "_get_width_height", options

        click++
        if click > 1
          container = $(".popover_container")
          
          # close_on_click: {
          #   where: "anywhere",
          #   except: null
          # }
          switch options.close_on_click.where
            when "anywhere"
              $(this).popover "close", options  unless $.inArray(e.target, options.close_on_click.except)
            when "outside"
              $(this).popover "close", options  if not container.is(e.target) and container.has(e.target).length is 0

      if options.close_on_scroll
        $(options.scroll_target).bind "scroll.popover", ->

      close_on_scroll: false
      scroll_target: $(document)
      scroll_threshold: 5
      close_on_click: "anywhere"
      restrict_close_click: null
      reposition_on_resize: false
      tooltip: false
      arrow_height: 12
