Scott Koon avatar Scott Koon committed 12e14dd

Finally figured out the scope for the var

Comments (0)

Files changed (3)

         };
     }
     return (window.bootstrap = window.$b = bootstrap);
-}())
+}());
  limitations under the License.
  **/
 
+var $b:any;
 
+module bootstrap {
 
-class bootstrap {
+export class b$ {
 
-    loaded: bool;
-    scriptSource: string;
-    scriptTag: string;
-    head: any;
-    scriptId: string;
-    callback: any;
 
-    constructor(scriptSource: string, scriptId: string, callback: () => void) {
-        head = document.head || document.getElementsByTagName("head")[0];
-        scriptId = scriptId || "script" + Math.floor(Math.random() * 1234);
-        scriptSource = scriptSource;
-        callback = callback || null;
+        loaded: bool;
+        scriptTag: string;
+        head: any;
+        callback: any;
+
+
+        constructor(private scriptSource: string, private scriptId ? : string, private callback ? : () => void)
+        {
+            this.head = document.head || document.getElementsByTagName("head")[0];
+            this.scriptId = scriptId || "script" + Math.floor(Math.random() * 1234);
+            this.scriptSource = scriptSource;
+            this.callback = callback || null;
+        }
+
 
     }
+}
+$b = bootstrap.b$;
 
-
-
-
-
-}
-window.bootstrap = window.b$ = new bootstrap();
 See the License for the specific language governing permissions and
 limitations under the License.
 **/
-var bootstrap = (function () {
-    function bootstrap(scriptSource, scriptId, callback) {
-        head = document.head || document.getElementsByTagName("head")[0];
-        scriptId = scriptId || "script" + Math.floor(Math.random() * 1234);
-        scriptSource = scriptSource;
-        callback = callback || null;
-    }
-    return bootstrap;
-})();
+var $b;
+var bootstrap;
+(function (bootstrap) {
+    var b$ = (function () {
+        function b$(scriptSource, scriptId, callback) {
+            this.scriptSource = scriptSource;
+            this.scriptId = scriptId;
+            this.callback = callback;
+            this.head = document.head || document.getElementsByTagName("head")[0];
+            this.scriptId = scriptId || "script" + Math.floor(Math.random() * 1234);
+            this.scriptSource = scriptSource;
+            this.callback = callback || null;
+        }
+        return b$;
+    })();
+    bootstrap.b$ = b$;    
+})(bootstrap || (bootstrap = {}));
+
+$b = bootstrap.b$;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.