mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
forward mount point to init
This commit is contained in:
parent
200fa5f276
commit
47d90a050f
3
index.js
3
index.js
@ -51,7 +51,8 @@ exports.mount = function (mnt, ops, cb) {
|
|||||||
var init = ops.init || call
|
var init = ops.init || call
|
||||||
ops.init = function (next) {
|
ops.init = function (next) {
|
||||||
callback()
|
callback()
|
||||||
init(next)
|
if (init.length > 1) init(mnt, next) // backwards compat for now
|
||||||
|
else init(next)
|
||||||
}
|
}
|
||||||
|
|
||||||
var error = ops.error || call
|
var error = ops.error || call
|
||||||
|
Loading…
Reference in New Issue
Block a user