mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
fix some
This commit is contained in:
parent
31a4563e5d
commit
8655ec1974
16
frame.js
16
frame.js
@ -59,14 +59,18 @@ Volcanos("onengine", { _init: function(can, meta, list, cb, target) {
|
|||||||
remote: function(event, can, msg, pane, cmds, cb) {
|
remote: function(event, can, msg, pane, cmds, cb) {
|
||||||
if (can.onengine.engine(event, can, msg, pane, cmds, cb)) { return }
|
if (can.onengine.engine(event, can, msg, pane, cmds, cb)) { return }
|
||||||
|
|
||||||
var res = Volcanos.meta.pack[pane._name+","+cmds.join(",")]
|
if (location.protocol == "file:") {
|
||||||
if (res) {
|
var res = Volcanos.meta.pack[pane._name+","+cmds.join(",")]
|
||||||
res = can.request(event, res)
|
if (res) {
|
||||||
delete(msg._event), delete(msg._can)
|
res = can.request(event, res)
|
||||||
return typeof cb == "function" && cb(res)
|
delete(msg._event), delete(msg._can)
|
||||||
|
return typeof cb == "function" && cb(res)
|
||||||
|
}
|
||||||
|
|
||||||
|
typeof cb == "function" && cb(msg)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location.protocol == "file:") { typeof cb == "function" && cb(msg); return }
|
|
||||||
can.misc.Run(event, can, {names: pane._name}, cmds, function(msg) {
|
can.misc.Run(event, can, {names: pane._name}, cmds, function(msg) {
|
||||||
delete(msg._event), delete(msg._can)
|
delete(msg._event), delete(msg._can)
|
||||||
Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg
|
Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user