UNPKG

drag-helper

Version:
17 lines (12 loc) 257 B
'use once' module.exports = function once(fn, scope){ var called var result return function(){ if (called){ return result } called = true return result = fn.apply(scope || this, arguments) } }