mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-03 20:59:09 +00:00
fix: param maybe null
This commit is contained in:
parent
3d8ade3ebe
commit
6b6124369c
@ -34,10 +34,9 @@ BlockIdWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
BlockIdWidget.prototype.hookFocusElementEvent = function(event) {
|
BlockIdWidget.prototype.hookFocusElementEvent = function(event) {
|
||||||
|
if(!event.param) return event;
|
||||||
var id = event.param.replace('#','');
|
var id = event.param.replace('#','');
|
||||||
if(id !== this.id) {
|
if(id !== this.id) return event;
|
||||||
return event;
|
|
||||||
}
|
|
||||||
var element = this.parentDomNode;
|
var element = this.parentDomNode;
|
||||||
// need to check if the block is before this node
|
// need to check if the block is before this node
|
||||||
if(this.previousSibling) {
|
if(this.previousSibling) {
|
||||||
|
Loading…
Reference in New Issue
Block a user