|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
326 bytes
|
| Line | |
|---|
| 1 | define(['./partial'], function (partial) {
|
|---|
| 2 |
|
|---|
| 3 | // Returns the first function passed as an argument to the second,
|
|---|
| 4 | // allowing you to adjust arguments, run code before and after, and
|
|---|
| 5 | // conditionally execute the original function.
|
|---|
| 6 | function wrap(func, wrapper) {
|
|---|
| 7 | return partial(wrapper, func);
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | return wrap;
|
|---|
| 11 |
|
|---|
| 12 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.