Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit d0f8273

Browse files
committed
refactor & make jshint happy
1 parent ef52432 commit d0f8273

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ function stringify(value) {
19421942
value = '' + value;
19431943
break;
19441944
default:
1945-
if (isFunction(value.toString) && value.toString !== Object.prototype.toString && !isArray(value)) {
1945+
if (hasCustomToString(value) && !isArray(value)) {
19461946
value = value.toString();
19471947
} else {
19481948
value = toJson(value);

src/ngMessageFormat/messageFormatCommon.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ var $interpolateMinErr = window['angular']['$interpolateMinErr'];
99

1010
var noop = window['angular']['noop'],
1111
isFunction = window['angular']['isFunction'],
12-
toJson = window['angular']['toJson'];
12+
toJson = window['angular']['toJson'],
13+
isArray = window['angular']['isArray'];
1314

1415
function stringify(value) {
1516
if (value == null) { // null || undefined

0 commit comments

Comments
 (0)