Update docdown to correctly detect _.noop as a function. [ci skip]

This commit is contained in:
John-David Dalton
2013-11-12 00:21:29 -08:00
parent 8dedc6d3dc
commit 8153f97899
2 changed files with 22 additions and 21 deletions

View File

@@ -170,11 +170,11 @@
<!-- div -->
## `Utilities`
* [`_.noop`](#_noop)
* [`_.escape`](#_escapestring)
* [`_.identity`](#_identityvalue)
* [`_.mixin`](#_mixinobject-object)
* [`_.noConflict`](#_noconflict)
* [`_.noop`](#_noop)
* [`_.parseInt`](#_parseintvalue-radix)
* [`_.random`](#_randommin0-max1-floatingfalse)
* [`_.result`](#_resultobject-property)
@@ -3941,25 +3941,6 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
## `“Utilities” Methods`
<!-- div -->
### <a id="_noop"></a>`_.noop`
<a href="#_noop">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/master/lodash.js#L6176 "View in source") [&#x24C9;][1]
*(unknown)*: A no-operation function.
#### Example
```js
var object = { 'name': 'fred' };
_.noop(object) === undefined;
// => true
```
* * *
<!-- /div -->
<!-- div -->
### <a id="_escapestring"></a>`_.escape(string)`
@@ -4060,6 +4041,25 @@ var lodash = _.noConflict();
<!-- /div -->
<!-- div -->
### <a id="_noop"></a>`_.noop()`
<a href="#_noop">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/master/lodash.js#L6176 "View in source") [&#x24C9;][1]
A no-operation function.
#### Example
```js
var object = { 'name': 'fred' };
_.noop(object) === undefined;
// => true
```
* * *
<!-- /div -->
<!-- div -->
### <a id="_parseintvalue-radix"></a>`_.parseInt(value, [radix])`

View File

@@ -77,7 +77,8 @@ class Entry {
$this->isCtor() ||
count($this->getParams()) ||
count($this->getReturns()) ||
preg_match('/\*[\t ]*@function\b/', $this->entry)
preg_match('/\*[\t ]*@function\b/', $this->entry) ||
preg_match('#\*/\s*function #', $this->entry)
);
}
return $this->_isFunction;