Skip to content

Commit 9ed068b

Browse files
committed
Typo fix
1 parent 0a2e401 commit 9ed068b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

@types/shared/utils.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function isArray<T>(array: any): array is T[];
6868
* @param {new (...args: any[]) => T} type The constructor to test against
6969
* @returns {val is T}
7070
*/
71-
export function isIntanceOf<T>(
71+
export function isInstanceOf<T>(
7272
val: any,
7373
type: new (...args: any[]) => T,
7474
): val is T;

src/animations/animate.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
extend,
33
hasAnimate,
44
isFunction,
5-
isIntanceOf,
5+
isInstanceOf,
66
isObject,
77
mergeClasses,
88
minErr,
@@ -343,8 +343,8 @@ export function AnimateProvider($provide) {
343343
parent = parent || after.parentElement;
344344

345345
if (
346-
isIntanceOf(element, HTMLElement) &&
347-
isIntanceOf(parent, HTMLElement)
346+
isInstanceOf(element, HTMLElement) &&
347+
isInstanceOf(parent, HTMLElement)
348348
) {
349349
animatedomInsert(element, parent, after);
350350
} else {
@@ -374,8 +374,8 @@ export function AnimateProvider($provide) {
374374
parent = parent || after.parentElement;
375375

376376
if (
377-
isIntanceOf(element, HTMLElement) &&
378-
isIntanceOf(parent, HTMLElement)
377+
isInstanceOf(element, HTMLElement) &&
378+
isInstanceOf(parent, HTMLElement)
379379
) {
380380
animatedomInsert(element, parent, after);
381381
} else {

src/directive/messages/messages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
entries,
44
hasOwn,
55
isArray,
6-
isIntanceOf,
6+
isInstanceOf,
77
isString,
88
} from "../../shared/utils.js";
99

@@ -265,7 +265,7 @@ export function ngMessagesIncludeDirective($templateRequest, $compile) {
265265
} else {
266266
// Non-empty template - compile and link
267267
$compile(html)($scope, (contents) => {
268-
isIntanceOf(contents, Node) && element.after(contents);
268+
isInstanceOf(contents, Node) && element.after(contents);
269269
});
270270
}
271271
});

src/shared/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function isArray(array) {
119119
* @param {new (...args: any[]) => T} type The constructor to test against
120120
* @returns {val is T}
121121
*/
122-
export function isIntanceOf(val, type) {
122+
export function isInstanceOf(val, type) {
123123
return val instanceof type;
124124
}
125125

@@ -263,7 +263,7 @@ export function isRegExp(value) {
263263
* @returns {obj is Window} True if `obj` is a window obj.
264264
*/
265265
export function isWindow(obj) {
266-
return isIntanceOf(obj, Window);
266+
return isInstanceOf(obj, Window);
267267
}
268268

269269
/**

0 commit comments

Comments
 (0)