Skip to content

Commit

Permalink
0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstjules committed Sep 18, 2014
1 parent 891d721 commit eb54845
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cross-storage",
"version": "0.3.1",
"version": "0.3.2",
"description": "Cross domain local storage",
"license": "Apache-2.0",
"authors": [
Expand Down
14 changes: 10 additions & 4 deletions dist/client-0.3.1.js → dist/client-0.3.2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* cross-storage - Cross domain local storage
*
* @version 0.3.1
* @version 0.3.2
* @link https://github.com/zendesk/cross-storage
* @author Daniel St. Jules <[email protected]>
* @copyright Zendesk
Expand Down Expand Up @@ -359,13 +359,19 @@ CrossStorageClient.prototype._request = function(method, params) {

// In case we have a broken Array.prototype.toJSON, e.g. because of
// old versions of prototype
var originalToJSON = Array.prototype.toJSON;
Array.prototype.toJSON = null;
var originalToJSON;

if (Array.prototype.toJSON) {
originalToJSON = Array.prototype.toJSON;
Array.prototype.toJSON = null;
}

// Send serialized message
client._hub.postMessage(JSON.stringify(req), client._origin);

// Restore original toJSON
Array.prototype.toJSON = originalToJSON;
if (originalToJSON) {
Array.prototype.toJSON = originalToJSON;
}
});
};
4 changes: 2 additions & 2 deletions dist/client-0.3.1.min.js → dist/client-0.3.2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hub-0.3.1.js → dist/hub-0.3.2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* cross-storage - Cross domain local storage
*
* @version 0.3.1
* @version 0.3.2
* @link https://github.com/zendesk/cross-storage
* @author Daniel St. Jules <[email protected]>
* @copyright Zendesk
Expand Down
2 changes: 1 addition & 1 deletion dist/hub-0.3.1.min.js → dist/hub-0.3.2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cross-storage",
"version": "0.3.1",
"version": "0.3.2",
"description": "Cross domain local storage",
"keywords": [
"local",
Expand Down

0 comments on commit eb54845

Please sign in to comment.