Skip to content

Commit f109114

Browse files
committed
profiler fix
1 parent e1391e5 commit f109114

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

src/core/core_port.js

+20-16
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,11 @@ export class Port extends Events
740740
portTriggered = this.links[i].portIn;
741741

742742
portTriggered.op.patch.pushTriggerStack(portTriggered);
743-
portTriggered._onTriggered();
743+
if (!portTriggered._onTriggered)
744+
{
745+
console.log(portTriggered, portTriggered._onTriggered);
746+
}
747+
portTriggered._onTriggered(null);
744748

745749
portTriggered.op.patch.popTriggerStack();
746750
}
@@ -976,22 +980,22 @@ export class Port extends Events
976980
if (this._op.enabled) this.emitEvent("trigger");
977981
}
978982

979-
// _onSetProfiling(v)
980-
// {
981-
// this._op.patch.profiler.add("port", this);
982-
// this.setValue(v);
983-
// this._op.patch.profiler.add("port", null);
984-
// }
983+
_onSetProfiling(v) // used in editor: profiler tab
984+
{
985+
this._op.patch.profiler.add("port", this);
986+
this.setValue(v);
987+
this._op.patch.profiler.add("port", null);
988+
}
985989

986-
// _onTriggeredProfiling()
987-
// {
988-
// if (this._op.enabled && this.onTriggered)
989-
// {
990-
// this._op.patch.profiler.add("port", this);
991-
// this.onTriggered();
992-
// this._op.patch.profiler.add("port", null);
993-
// }
994-
// }
990+
_onTriggeredProfiling() // used in editor: profiler tab
991+
{
992+
if (this._op.enabled && this.onTriggered)
993+
{
994+
this._op.patch.profiler.add("port", this);
995+
this.onTriggered();
996+
this._op.patch.profiler.add("port", null);
997+
}
998+
}
995999

9961000
// getUiActiveState()
9971001
// {

src/ops/base/Ops.Html.CSS.CSS_v3/Ops.Html.CSS.CSS_v3.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"name": "Active",
2222
"subType": "boolean"
2323
}
24-
]
24+
],
25+
"portsOut": []
2526
},
2627
"changelog": [
2728
{

0 commit comments

Comments
 (0)