@@ -35,11 +35,11 @@ function minErr(module) {
35
35
template = arguments [ 1 ] ,
36
36
templateArgs = arguments ,
37
37
stringify = function ( obj ) {
38
- if ( isFunction ( obj ) ) {
38
+ if ( typeof obj === 'function' ) {
39
39
return obj . toString ( ) . replace ( / \{ [ \s \S ] * $ / , '' ) ;
40
- } else if ( isUndefined ( obj ) ) {
40
+ } else if ( typeof obj === 'undefined' ) {
41
41
return 'undefined' ;
42
- } else if ( ! isString ( obj ) ) {
42
+ } else if ( typeof obj !== 'string' ) {
43
43
return JSON . stringify ( obj ) ;
44
44
}
45
45
return obj ;
@@ -51,19 +51,19 @@ function minErr(module) {
51
51
52
52
if ( index + 2 < templateArgs . length ) {
53
53
arg = templateArgs [ index + 2 ] ;
54
- if ( isFunction ( arg ) ) {
54
+ if ( typeof arg === 'function' ) {
55
55
return arg . toString ( ) . replace ( / ? \{ [ \s \S ] * $ / , '' ) ;
56
- } else if ( isUndefined ( arg ) ) {
56
+ } else if ( typeof arg === 'undefined' ) {
57
57
return 'undefined' ;
58
- } else if ( ! isString ( arg ) ) {
58
+ } else if ( typeof arg !== 'string' ) {
59
59
return toJson ( arg ) ;
60
60
}
61
61
return arg ;
62
62
}
63
63
return match ;
64
64
} ) ;
65
65
66
- message = message + '\nhttp://errors.angularjs.org/' + version . full + ' /' +
66
+ message = message + '\nhttp://errors.angularjs.org/"NG_VERSION_FULL" /' +
67
67
( module ? module + '/' : '' ) + code ;
68
68
for ( i = 2 ; i < arguments . length ; i ++ ) {
69
69
message = message + ( i == 2 ? '?' : '&' ) + 'p' + ( i - 2 ) + '=' +
0 commit comments