Fix docs issues with Item#matches()

This commit is contained in:
Jürg Lehni 2014-10-18 13:40:36 +02:00
parent 3be1e481e9
commit e7fd751765

View file

@ -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