| Index: tools/turbolizer/util.js
|
| diff --git a/tools/turbolizer/util.js b/tools/turbolizer/util.js
|
| index 09a747379018c3c650280f30319567abe425c83a..282221af483355bbda5e6dc3a470ae9ceebea5cb 100644
|
| --- a/tools/turbolizer/util.js
|
| +++ b/tools/turbolizer/util.js
|
| @@ -69,3 +69,12 @@ function sortUnique(arr, f) {
|
| }
|
| return ret;
|
| }
|
| +
|
| +// Partial application without binding the receiver
|
| +function partial(f) {
|
| + var arguments1 = Array.prototype.slice.call(arguments, 1);
|
| + return function() {
|
| + var arguments2 = Array.from(arguments);
|
| + f.apply(this, arguments1.concat(arguments2));
|
| + }
|
| +}
|
|
|