roojs-bootstrap.js
[roojs1] / Roo / bootstrap / Link.js
index 1e77d7e..aebb2d7 100644 (file)
@@ -9,7 +9,9 @@
 /**
  * @class Roo.bootstrap.Link
  * @extends Roo.bootstrap.Component
- * Bootstrap Link Class
+ * @children Roo.bootstrap.Component
+ * Bootstrap Link Class (eg. '<a href>')
  * @cfg {String} alt image alternative text
  * @cfg {String} href a tag href
  * @cfg {String} target (_self|_blank|_parent|_top) target for a href.
@@ -53,7 +55,7 @@ Roo.extend(Roo.bootstrap.Link, Roo.bootstrap.Component,  {
     {
         var html = this.html || '';
         
-        if (this.fa != false) {
+        if (this.fa !== false) {
             html = '<i class="fa fa-' + this.fa + '"></i>';
         }
         var cfg = {
@@ -65,7 +67,7 @@ Roo.extend(Roo.bootstrap.Link, Roo.bootstrap.Component,  {
             cfg.href = this.href || '#';
         } else {
             cfg.name = this.anchor;
-            if (this.html !== false) {
+            if (this.html !== false || this.fa !== false) {
                 cfg.html = html;
             }
             if (this.href !== false) {