Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 02541a8

Browse files
committed
Merge pull request #331 from telerik/yok-strict
Compile Yok in strict mode
2 parents 7bb37ea + dbdb476 commit 02541a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yok.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
23

34
//--- begin part copied from AngularJS
45

@@ -362,7 +363,7 @@ export class Yok implements IInjector {
362363

363364
let name = ctor.$inject.name;
364365
if(name && name[0] === name[0].toUpperCase()) {
365-
function EmptyCtor() { }
366+
let EmptyCtor = function() { }
366367
EmptyCtor.prototype = ctor.prototype;
367368
let obj = new (<any>EmptyCtor)();
368369

0 commit comments

Comments
 (0)