This is just some static backup of the original site, don't expect every link to work!

source: chrome/content/v_identity/_overlayNameSpaceWrapper.js @ 284956

ng_0.9
Last change on this file since 284956 was 284956, checked in by rene <rene@…>, 11 years ago

moved some files to increase overview

  • Property mode set to 100644
File size: 810 bytes
Line 
1// copied and adapted from http://www.softwareishard.com/blog/planet-mozilla/firefox-extensions-global-namespace-pollution/
2// The only global object for this extension.
3
4// prevent double initializations by different overlays
5if (typeof(virtualIdentityExtension ) == "undefined") {
6    var virtualIdentityExtension = {};
7    virtualIdentityExtension.initTime = parseInt((new Date()).getTime());
8    dump("init vI_overlayNameSpaceWrapper " + virtualIdentityExtension.initTime + "\n");
9
10    (function() { this.ns = function(fn) { fn.apply({}); };  }).apply(virtualIdentityExtension);
11
12    virtualIdentityExtension.LIB = {
13        // Shared APIs
14        getCurrentURI: function() { dump("getCurrentURI " + window.location.href + "\n"); return window.location.href; },
15
16        // Extension singleton shortcut
17        vI: virtualIdentityExtension
18    };
19}
Note: See TracBrowser for help on using the repository browser.