     callback: ->
       $el = $ this
       attr = $el.ptAttr()
-      $el.removeData 'ptPopoverLoaded'
       $el.removeData 'ptPopoverFocused'
-      if not attr.popoverContainer
-        $('body').find('.popover').remove()
-        # $el.popover 'hide'
-      else
-        $el.closest(attr.popoverContainer).find('.popover').remove()
+      if $el.data 'ptPopoverLoaded'
+        $el.popover 'hide'
+      # if not attr.popoverContainer
+      #   $('body').find('.popover').popover 'hide'
+      # else
+      #   $el.closest(attr.popoverContainer).popover 'hide'

        $el = $ $el[0]
        attr = $el.ptAttr()

        log $el.data()

        if not $el.data('ptPopoverLoaded') and $el.data('ptPopoverFocused')
          $el.data 'ptPopoverLoaded', true
          url = attr.popover

          #if not a url assume it's content

                  trigger: 'manual'
                  container: attr.popoverContainer or 'body'
                  placement: attr.popoverPlacement or 'right'
                $el.data 'ptPopoverLoaded', true
                $el.popover 'show' if $el.data 'ptPopoverFocused'
        else if $el.data('ptPopoverFocused')
          $el.popover 'show'
      , 500)


