Add files
This commit is contained in:
commit
bb80829159
18195 changed files with 2122994 additions and 0 deletions
24
509bba0_unpacked_with_node_modules/~/drag-helper/utils/once.js
generated
Executable file
24
509bba0_unpacked_with_node_modules/~/drag-helper/utils/once.js
generated
Executable file
|
@ -0,0 +1,24 @@
|
|||
'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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//////////////////
|
||||
// WEBPACK FOOTER
|
||||
// ./~/drag-helper/utils/once.js
|
||||
// module id = 2070
|
||||
// module chunks = 4
|
Loading…
Add table
Add a link
Reference in a new issue