]> gerrit.simantics Code Review - simantics/district.git/blob - lock.js
91e1a65cd918877bf5413092856f825513967068
[simantics/district.git] / lock.js
1 'use strict';
2
3 var callable = require('../../object/valid-callable')
4
5   , apply    = Function.prototype.apply;
6
7 module.exports = function (/*…args*/) {
8         var fn = callable(this)
9           , args = arguments;
10
11         return function () { return apply.call(fn, this, args); };
12 };