SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

feat(Angular.js): skip JSON.stringify for undefined

Return early in `angular.toJson` if the object to be stringified is `undefined`.
IE8 stringifies `undefined` to `'undefined'` whereas other browsers return
`undefined`. This normalizes behavior and passes currently broken unit tests
in IE8.
G
Greg Thornton committed
5a294c8646452d6e49339d145faeae4f31dcd0fc
Parent: ccda0f3
Committed by Pawel Kozlowski <pkozlowski.opensource@gmail.com> on 7/12/2013, 6:32:40 PM