All new
alle new
This commit is contained in:
1 parent
da64472251
commit
5b20adee48
1605 files changed
+396517
-1674
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
define(['./partial'], function (partial) {
|
||||
|
||||
// Returns the first function passed as an argument to the second,
|
||||
// allowing you to adjust arguments, run code before and after, and
|
||||
// conditionally execute the original function.
|
||||
function wrap(func, wrapper) {
|
||||
return partial(wrapper, func);
|
||||
}
|
||||
|
||||
return wrap;
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user