initial commit
This commit is contained in:
17
node_modules/drag-helper/utils/once.js
generated
vendored
Normal file
17
node_modules/drag-helper/utils/once.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user