mirror of
https://github.com/fuse-friends/fuse-native
synced 2026-03-02 03:40:15 +00:00
forward mount point to init
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user