src/widgets/Polemic.js
branchnew-model
changeset 924 64c2eaafe5e2
parent 916 ec6849bbbdcc
child 925 28efc97b5d78
--- a/src/widgets/Polemic.js	Fri Jun 29 16:22:52 2012 +0200
+++ b/src/widgets/Polemic.js	Thu Jul 05 19:08:13 2012 +0200
@@ -40,11 +40,6 @@
             "keywords" : [ "?" ],
             "color" : "#036AAE"
         }
-    ],
-    requires : [
-        {
-            type: "Tooltip"
-        }
     ]
 };
 
@@ -287,6 +282,10 @@
         var _x = _e.pageX - _this.$zone.offset().left;
         _this.player.popcorn.currentTime(_this.source.getDuration().getSeconds() * _x / _this.width);
     });
+    
+    this.$.append('<div class="Ldt-Polemic-Tooltip"></div>');
+    
+    this.insertSubwidget(this.$.find(".Ldt-Polemic-Tooltip"), "tooltip", { type: "Tooltip" });
 }
 
 IriSP.Widgets.Polemic.prototype.onTimeupdate = function() {