mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Minor change to _.once to avoid an extra var swap.
This commit is contained in:
@@ -8060,7 +8060,7 @@
|
||||
* // `initialize` invokes `createApplication` once
|
||||
*/
|
||||
function once(func) {
|
||||
return before(func, 2);
|
||||
return before(2, func);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user