kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Ensure new variables are strings (#5197)
rodzic
8799911162
commit
9825b5b4a0
|
|
@ -97,13 +97,13 @@ EventWidget.prototype.render = function(parent,nextSibling) {
|
||||||
variables["event-mousebutton"] = "right";
|
variables["event-mousebutton"] = "right";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
variables["event-type"] = event.type;
|
variables["event-type"] = event.type.toString();
|
||||||
if(typeof event.detail === "object" && !!event.detail) {
|
if(typeof event.detail === "object" && !!event.detail) {
|
||||||
$tw.utils.each(event.detail,function(detailValue,detail) {
|
$tw.utils.each(event.detail,function(detailValue,detail) {
|
||||||
variables["event-detail-" + detail] = detailValue;
|
variables["event-detail-" + detail] = detailValue.toString();
|
||||||
});
|
});
|
||||||
} else if(!!event.detail) {
|
} else if(!!event.detail) {
|
||||||
variables["event-detail"] = event.detail;
|
variables["event-detail"] = event.detail.toString();
|
||||||
}
|
}
|
||||||
self.invokeActionString(actions,self,event,variables);
|
self.invokeActionString(actions,self,event,variables);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue