From e7fd751765bb4f7ec0212659c326e8b1125327fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 18 Oct 2014 13:40:36 +0200 Subject: [PATCH] Fix docs issues with Item#matches() --- src/item/Item.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 4cbb530f..cf180141 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1775,23 +1775,20 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ }, /** - * @name Item#matches - * * {@grouptitle Fetching and matching items} * * Checks whether the item matches the criteria described by the given * object, by iterating over all of its properties and matching against * their values through {@link #matches(name, compare)}. * + * @name #matches + * @function + * * @see Project#getItems(match) * @param {Object} match the criteria to match against. * @return {@true if the item matches all the criteria} */ /** - * @name Item#matches - * - * {@grouptitle Fetching and matching items} - * * Checks whether the item matches the given criteria. Extended matching is * possible by providing a compare function or a regular expression. * Matching points, colors only work as a comparison of the full object, not @@ -1799,6 +1796,9 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ * points with that x-value). Partial matching does work for * {@link Item#data}. * + * @name #matches + * @function + * * @see Project#getItems(match) * @param {String} name the name of the state to match against. * @param {Object} compare the value, function or regular expression to