Skip to content

Commit

Permalink
wrap code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Jan 13, 2012
1 parent cf038ab commit 0deb4cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/porthole.js
Expand Up @@ -43,13 +43,13 @@ note right of "iFrame proxy abc.com": read url fragment
iFrame proxy abc.com->abc.com: forwardMessageEvent(event)
*/

(function (window) {
'use strict';

/**
* Namespace for Porthole, a small library for secure cross-domain iFrame communication.
*/
var Porthole = (typeof Porthole == "undefined") || !Porthole ? {} : Porthole;

// Support testing some code in node.js:
var window = (typeof window == "undefined") ? this : window;
var Porthole = (typeof Porthole === "undefined" || !Porthole) ? {} : Porthole;

Porthole = {
/**
Expand Down Expand Up @@ -433,3 +433,5 @@ Porthole.WindowProxyDispatcher = {
if (typeof exports != "undefined") {
exports.Porthole = Porthole;
}

})(this);

0 comments on commit 0deb4cf

Please sign in to comment.