ng_0.9
Last change
on this file since 184c6c was
184c6c,
checked in by rene <rene@…>, 11 years ago
|
rearranged tree structure / added build-script
|
-
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 |
---|
5 | if (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.