MCPcopy
hub / github.com/angular-ui/ui-router / isClass

Function isClass

test/angular/1.6/angular.js:5088–5101  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

5086 }
5087
5088 function isClass(func) {
5089 // Support: IE 9-11 only
5090 // IE 9-11 do not support classes and IE9 leaks with the code below.
5091 if (msie || typeof func !== 'function') {
5092 return false;
5093 }
5094 var result = func.$$ngIsClass;
5095 if (!isBoolean(result)) {
5096 // Support: Edge 12-13 only
5097 // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/
5098 result = func.$$ngIsClass = /^(?:class\b|constructor\()/.test(stringifyFn(func));
5099 }
5100 return result;
5101 }
5102
5103 function invoke(fn, self, locals, serviceName) {
5104 if (typeof locals === 'string') {

Callers 1

invokeFunction · 0.70

Calls 2

isBooleanFunction · 0.70
stringifyFnFunction · 0.70

Tested by

no test coverage detected