From 1d7759658ca021e2fe0261302de01a8b28d7bceb Mon Sep 17 00:00:00 2001 From: BobChao87 Date: Fri, 17 Mar 2017 00:26:42 -0700 Subject: [PATCH] docs($resource): JSDoc Parsing of ) in Link JSDoc to HTML converter was catching the close parenthesis in `[MDN](...#toJson()_behavior)` from the `toJson()` and treating it as the final close parenthesis. End result was a link to MDN that didn't link to the correct section, but did resolve. It was followed by a non-link "_behavior)". Updated version with percent encoding correct resolves to desired section and gets parsed to the correct link in JSDoc to HTML. --- src/ngResource/resource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index 060d66b7f120..b5b8151ecc22 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -280,7 +280,7 @@ function shallowClearAndCopy(src, dst) { * the Resource API. This object can be serialized through {@link angular.toJson} safely * without attaching AngularJS-specific fields. Notice that `JSON.stringify` (and * `angular.toJson`) automatically use this method when serializing a Resource instance - * (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior)). + * (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior)). * * @example *