mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
22
react-app/node_modules/lodash/internal/createBindWrapper.js
generated
vendored
Normal file
22
react-app/node_modules/lodash/internal/createBindWrapper.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var createCtorWrapper = require('./createCtorWrapper');
|
||||
|
||||
/**
|
||||
* Creates a function that wraps `func` and invokes it with the `this`
|
||||
* binding of `thisArg`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to bind.
|
||||
* @param {*} [thisArg] The `this` binding of `func`.
|
||||
* @returns {Function} Returns the new bound function.
|
||||
*/
|
||||
function createBindWrapper(func, thisArg) {
|
||||
var Ctor = createCtorWrapper(func);
|
||||
|
||||
function wrapper() {
|
||||
var fn = (this && this !== global && this instanceof wrapper) ? Ctor : func;
|
||||
return fn.apply(thisArg, arguments);
|
||||
}
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
module.exports = createBindWrapper;
|
Reference in New Issue
Block a user