equal
deleted
inserted
replaced
2 IriSP.Widgets.Widget.call(this, player, config); |
2 IriSP.Widgets.Widget.call(this, player, config); |
3 this.last_hash_key = ""; |
3 this.last_hash_key = ""; |
4 this.last_hash_value = ""; |
4 this.last_hash_value = ""; |
5 window.onhashchange = this.functionWrapper("goToHash"); |
5 window.onhashchange = this.functionWrapper("goToHash"); |
6 if (typeof window.addEventListener !== "undefined") { |
6 if (typeof window.addEventListener !== "undefined") { |
|
7 var _this = this; |
7 window.addEventListener('message', function(_msg) { |
8 window.addEventListener('message', function(_msg) { |
8 if (/^#/.test(_msg.data)) { |
9 if (/^#/.test(_msg.data)) { |
9 this.setWindowHash(_msg.data); |
10 _this.setWindowHash(_msg.data); |
10 } |
11 } |
11 }) |
12 }) |
12 }; |
13 }; |
13 this.onMdpEvent("Mediafragment.setHashToAnnotation","setHashToAnnotation"); |
14 this.onMdpEvent("Mediafragment.setHashToAnnotation","setHashToAnnotation"); |
14 this.blocked = false; |
15 this.blocked = false; |