27 if (_ms) { |
27 if (_ms) { |
28 _f = IriSP.underscore.throttle(_f, _ms); |
28 _f = IriSP.underscore.throttle(_f, _ms); |
29 } |
29 } |
30 _this._Popcorn.listen(_listener, _f); |
30 _this._Popcorn.listen(_listener, _f); |
31 }); |
31 }); |
32 this._Popcorn.listen("timeupdate", IriSP.underscore.throttle(function(_arg) { |
|
33 _this.eventHandler(_listener, _arg); |
|
34 })); |
|
35 |
32 |
36 this.tracer = IriSP.TraceManager(IriSP.jQuery).init_trace("test", this._config); |
33 if (typeof window.tracemanager === "undefined") { |
37 this.tracer.trace("StartTracing", { "hello": "world" }); |
34 $LAB.script(IriSP.getLib("tracemanager")).wait(function() { |
|
35 _this.onTmLoaded(); |
|
36 }); |
|
37 } else { |
|
38 this.onTmLoaded(); |
|
39 } |
38 |
40 |
39 } |
41 } |
40 |
42 |
41 IriSP.TraceWidget.prototype = new IriSP.Widget(); |
43 IriSP.TraceWidget.prototype = new IriSP.Widget(); |
|
44 |
|
45 IriSP.TraceWidget.prototype.onTmLoaded = function() { |
|
46 this.tracer = window.tracemanager.init_trace("test", this._config); |
|
47 this.tracer.trace("StartTracing", { "hello": "world" }); |
|
48 } |
42 |
49 |
43 IriSP.TraceWidget.prototype.draw = function() { |
50 IriSP.TraceWidget.prototype.draw = function() { |
44 this.mouseLocation = ''; |
51 this.mouseLocation = ''; |
45 var _this = this; |
52 var _this = this; |
46 IriSP.jQuery(".Ldt-Widget").bind("click mouseover mouseout dragstart dragstop", function(_e) { |
53 IriSP.jQuery(".Ldt-Widget").bind("click mouseover mouseout dragstart dragstop", function(_e) { |