Roo/bootstrap/Tooltip.js
authoredward <edward@roojs.com>
Tue, 21 Nov 2017 07:34:05 +0000 (15:34 +0800)
committeredward <edward@roojs.com>
Tue, 21 Nov 2017 07:34:05 +0000 (15:34 +0800)
Roo/bootstrap/Tooltip.js

index 122e44c..8645ebd 100644 (file)
 Roo.bootstrap.Tooltip = function(config){
     Roo.bootstrap.Tooltip.superclass.constructor.call(this, config);
     
-    this.alignment = config.alignment || Roo.bootstrap.Tooltip.alignment;
+    this.alignment = Roo.bootstrap.Tooltip.alignment;
+    
+    if(typeof(config) != 'undefined' && typeof(config.alignment) != 'undefined'){
+        this.alignment = config.alignment;
+    }
+    
 };
 
 Roo.apply(Roo.bootstrap.Tooltip, {