fix(angularjs): make Function.$inject optional

The $inject member of the global Function interface should be optional, to be consistent with actual functions.
This commit is contained in:
Aidiakapi
2014-04-08 17:32:00 +02:00
parent d6d7eec45a
commit cbdaec6beb

View File

@@ -10,7 +10,7 @@ declare var angular: ng.IAngularStatic;
// Support for painless dependency injection
interface Function {
$inject:string[];
$inject?: string[];
}
///////////////////////////////////////////////////////////////////////////////