Cleanup docs.

This commit is contained in:
John-David Dalton
2013-09-15 17:17:57 -07:00
parent 133b1067c5
commit 40204e8133
4 changed files with 11 additions and 23 deletions

View File

@@ -15,10 +15,9 @@ A utility library delivering consistency, [customization](http://lodash.com/cust
[Development](https://raw.github.com/lodash/lodash/2.0.0/dist/lodash.underscore.js) &
[Production](https://raw.github.com/lodash/lodash/2.0.0/dist/lodash.underscore.min.js)
Love modules? Weve got you covered with [lodash-amd](https://npmjs.org/package/lodash-amd), [lodash-node](https://npmjs.org/package/lodash-node), and [npm packages](https://npmjs.org/browse/author/jdalton) per method.
CDN copies are available on [cdnjs](http://cdnjs.com/) & [jsDelivr](http://www.jsdelivr.com/#!lodash).<br>
For smaller file sizes, create [custom builds](http://lodash.com/custom-builds) with only the features needed.
Love modules? Weve got you covered with [lodash-amd](https://npmjs.org/package/lodash-amd), [lodash-node](https://npmjs.org/package/lodash-node), and [npm packages](https://npmjs.org/browse/author/jdalton) per method.
## Dive in

View File

@@ -107,14 +107,14 @@
* [`_.compose`](#_composefunc)
* [`_.createCallback`](#_createcallbackfuncidentity--thisarg--argcount)
* [`_.curry`](#_curryfunc--arityfunclength)
* [`_.debounce`](#_debouncefunc-wait--options--optionsleadingfalse--optionsmaxwait--optionstrailingtrue)
* [`_.debounce`](#_debouncefunc-wait--options--optionsmaxwait)
* [`_.defer`](#_deferfunc--arg)
* [`_.delay`](#_delayfunc-wait--arg)
* [`_.memoize`](#_memoizefunc--resolver)
* [`_.once`](#_oncefunc)
* [`_.partial`](#_partialfunc--arg)
* [`_.partialRight`](#_partialrightfunc--arg)
* [`_.throttle`](#_throttlefunc-wait--options--optionsleadingtrue--optionstrailingtrue)
* [`_.throttle`](#_throttlefunc-wait--options)
* [`_.wrap`](#_wrapvalue-wrapper)
<!-- /div -->
@@ -2388,8 +2388,8 @@ curried(1, 2, 3);
<!-- div -->
### <a id="_debouncefunc-wait--options--optionsleadingfalse--optionsmaxwait--optionstrailingtrue"></a>`_.debounce(func, wait, [options], [options.leading=false], [options.maxWait], [options.trailing=true])`
<a href="#_debouncefunc-wait--options--optionsleadingfalse--optionsmaxwait--optionstrailingtrue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5433 "View in source") [&#x24C9;][1]
### <a id="_debouncefunc-wait--options--optionsmaxwait"></a>`_.debounce(func, wait, [options], [options.maxWait])`
<a href="#_debouncefunc-wait--options--optionsmaxwait">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5433 "View in source") [&#x24C9;][1]
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2614,8 +2614,8 @@ options.imports
<!-- div -->
### <a id="_throttlefunc-wait--options--optionsleadingtrue--optionstrailingtrue"></a>`_.throttle(func, wait, [options], [options.leading=true], [options.trailing=true])`
<a href="#_throttlefunc-wait--options--optionsleadingtrue--optionstrailingtrue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5747 "View in source") [&#x24C9;][1]
### <a id="_throttlefunc-wait--options"></a>`_.throttle(func, wait, [options])`
<a href="#_throttlefunc-wait--options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5747 "View in source") [&#x24C9;][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.

View File

@@ -553,20 +553,6 @@
(/^[\s(]*function[^(]*\(([^\s,)]+)/.exec(fn) || 0)[1]) || '';
}
/**
* Computes the geometric mean (log-average) of a sample.
* See http://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_arithmetic_mean_of_logarithms.
*
* @private
* @param {Array} sample The sample.
* @returns {number} The geometric mean.
*/
function getGeometricMean(sample) {
return pow(Math.E, _.reduce(sample, function(sum, x) {
return sum + log(x);
}) / sample.length) || 0;
}
/**
* Computes the arithmetic mean of a sample.
*

View File

@@ -142,7 +142,10 @@ class Entry {
$params = $this->getParams();
foreach ($params as $param) {
$result[] = $param[1];
// skip params that are properties of other params (e.g. `options.leading`)
if (!preg_match('/\w+\.[\w.]+\s*=/', $param[1])) {
$result[] = $param[1];
}
}
// format
$result = $name .'('. implode(array_slice($result, 1), ', ') .')';