Fix tslint errors

This commit is contained in:
Erjan Gavalji
2015-07-29 16:42:09 +03:00
parent a824a38dff
commit 23a8c6aba1

View File

@ -17,13 +17,17 @@ global.clearTimeout = timer.clearTimeout;
global.setInterval = timer.setInterval;
global.clearInterval = timer.clearInterval;
if (typeof global.__decorate !== "function") global.__decorate = function (decorators, target, key, desc) {
if (typeof global.Reflect === "object" && typeof global.Reflect.decorate === "function") return global.Reflect.decorate(decorators, target, key, desc);
if (typeof global.__decorate !== "function") {
global.__decorate = function (decorators, target, key, desc) {
if (typeof global.Reflect === "object" && typeof global.Reflect.decorate === "function") {
return global.Reflect.decorate(decorators, target, key, desc);
}
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
}
}
};
// Temporary workaround for console in iOS. We will use runtime console instead our implementation.