You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(AjaxObservable): return null value from JSON.Parse (#1904)
* Return null value from JSON.Parse
JSON.parse('') will throw a syntax error (in any browser). Fix is to return a null value. I saw this when my server returned HTTP 204 No Content.
* added ajax tests for 204 No Content
* mock the behavior of IE
unit test for IE
* pascal case class name.
added missing semicolon.
* Use 'null' instead of '' for JSON.parse
* remove empty constructor
* fix(AjaxObservable): return null value from JSON.Parse
JSON.parse('') will throw a syntax error (in any browser). Fix is to return a null value.
This happens during an HTTP 204 'No Content' in IE.
Added a mock for InternetExplorer. Added unit tests for HTTP 204.
closes#1381
0 commit comments