src/js/modules/embed.js
changeset 944 8a6c9e3d0158
parent 907 27b248a13355
parent 943 a882cc0c936f
child 945 7d9f6fd6f904
--- a/src/js/modules/embed.js	Thu May 24 15:05:47 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-/* embed module - listens and relay hash changes to a parent window. */
-
-IriSP.EmbedModule = function(Popcorn, config, Serializer) {
-  IriSP.Module.call(this, Popcorn, config, Serializer);
-
-  window.addEventListener('message', IriSP.wrap(this, this.handleMessages), false);
-  this._Popcorn.listen("IriSP.Mediafragment.hashchange", IriSP.wrap(this, this.relayChanges));
-};
-
-IriSP.EmbedModule.prototype = new IriSP.Module();
-
-IriSP.EmbedModule.prototype.handleMessages = function(e) {
-  if (e.data.type === "hashchange") {
-    window.location.hash = e.data.value;    
-  }  
-};
-
-IriSP.EmbedModule.prototype.relayChanges = function(newHash) {
-  window.parent.postMessage({type: "hashchange", value: newHash}, "*"); 
-  return;
-};
\ No newline at end of file