From d0ebed13b5e8920d68cf3ab9181d262e05050dff Mon Sep 17 00:00:00 2001 From: Jason Zhekov Date: Tue, 3 May 2016 17:04:52 +0300 Subject: [PATCH] Add __extends in case it's missing --- globals/globals.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/globals/globals.ts b/globals/globals.ts index e703ddc24..16dac3a1d 100644 --- a/globals/globals.ts +++ b/globals/globals.ts @@ -42,6 +42,16 @@ global.zonedCallback = function (callback: Function): Function { } } +global.__extends = global.__extends || function (d, b) { + for (var p in b) { + if (b.hasOwnProperty(p)) { + d[p] = b[p]; + } + } + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; + global.registerModule("timer", () => require("timer")); global.registerModule("ui/dialogs", () => require("ui/dialogs")); global.registerModule("xhr", () => require("xhr"));