Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fixed a bug where the encoding would happend after queuing/fragmentin…
Browse files Browse the repository at this point in the history
…g while the

decoding happened before.
  • Loading branch information
oyvindkinsey committed Mar 13, 2010
1 parent ef72829 commit 1ef1d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/easyXDM.transport.HashTransport.js
Expand Up @@ -112,7 +112,7 @@
config.onMessage(decodeURIComponent(message), origin);
},
outgoing: function(message){
_sendMessage(encodeURIComponent(message));
_sendMessage(message);
},
callback: function(succes){
if (onReady) {
Expand Down Expand Up @@ -232,7 +232,7 @@
* @param {String} message The message to send
*/
this.postMessage = function(message){
me.down.outgoing(message, _remoteOrigin);
me.down.outgoing(encodeURIComponent(message), _remoteOrigin);
};

/**
Expand Down

0 comments on commit 1ef1d85

Please sign in to comment.