Roo/bootstrap/Popover.js
authorAlan Knowles <alan@roojs.com>
Thu, 11 Feb 2021 04:33:30 +0000 (12:33 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 11 Feb 2021 04:33:30 +0000 (12:33 +0800)
Roo/bootstrap/Popover.js

index abcc396..f2aabbe 100644 (file)
@@ -339,7 +339,9 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
      */
     updatePosition : function(placement, try_move)
     {
+        // allow for calling with no parameters
         placement = placement   ? placement :  this.placement;
+        try_move = typeof(try_move) == 'undefined' ? true : try_move;
         
         this.el.removeClass([
             'fade','top','bottom', 'left', 'right','in',