Skip to content

Commit ce4855d

Browse files
committed
Fix 'ReferenceError: isFunction is not defined'
When adding a listener to `$createObservableFunction` I got this error. I assume this code is meant to call `angular.isFunction`.
1 parent cf962a4 commit ce4855d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/trycatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function tryCatcherGen(tryCatchTarget) {
1212
}
1313

1414
function tryCatch(fn) {
15-
if (!isFunction(fn)) { throw new TypeError('fn must be a function'); }
15+
if (!angular.isFunction(fn)) { throw new TypeError('fn must be a function'); }
1616
return tryCatcherGen(fn);
1717
}
1818

0 commit comments

Comments
 (0)