From 3b4deca51790fb0254b16f100aac5be466e4be6b Mon Sep 17 00:00:00 2001 From: jpsimons Date: Wed, 2 Jul 2014 10:31:01 -0700 Subject: [PATCH] Updating $location.search() jsdoc signature --- src/ng/location.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ng/location.js b/src/ng/location.js index a804674edb8a..1d99e9b2ea21 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -427,14 +427,17 @@ LocationHashbangInHtml5Url.prototype = * If the argument is a hash object containing an array of values, these values will be encoded * as duplicate search parameters in the url. * - * @param {(string|Array)=} paramValue If `search` is a string, then `paramValue` will - * override only a single search property. + * @param {(string|Array|boolean)=} paramValue If `search` is a string, then `paramValue` + * will override only a single search property. * * If `paramValue` is an array, it will override the property of the `search` component of * `$location` specified via the first argument. * * If `paramValue` is `null`, the property specified via the first argument will be deleted. * + * If `paramValue` is `true`, the property specified via the first argument will be added with no + * value nor trailing equal sign. + * * @return {Object} If called with no arguments returns the parsed `search` object. If called with * one or more arguments returns `$location` object itself. */