<postprocess>, fix tab open/close, fix some URL bugs
This commit is contained in:
@@ -95,7 +95,7 @@ static func get_element_last_child_handler(vm: LuauVM, dom_parser: HTMLParser, l
|
||||
|
||||
# DOM Manipulation Methods
|
||||
|
||||
static func handle_element_append(operation: Dictionary, dom_parser: HTMLParser, lua_api) -> void:
|
||||
static func handle_element_append(operation: Dictionary, dom_parser: HTMLParser) -> void:
|
||||
var parent_id: String = operation.parent_id
|
||||
var child_id: String = operation.child_id
|
||||
|
||||
@@ -153,7 +153,7 @@ static func handle_element_remove(operation: Dictionary, dom_parser: HTMLParser)
|
||||
if all_elements_index >= 0:
|
||||
dom_parser.parse_result.all_elements.remove_at(all_elements_index)
|
||||
|
||||
static func handle_insert_before(operation: Dictionary, dom_parser: HTMLParser, lua_api) -> void:
|
||||
static func handle_insert_before(operation: Dictionary, dom_parser: HTMLParser) -> void:
|
||||
var parent_id: String = operation.parent_id
|
||||
var new_child_id: String = operation.new_child_id
|
||||
var reference_child_id: String = operation.reference_child_id
|
||||
|
||||
@@ -472,7 +472,9 @@ func _set_interval_handler(vm: LuauVM) -> int:
|
||||
func get_current_href() -> String:
|
||||
var main_node = Engine.get_main_loop().current_scene
|
||||
|
||||
return main_node.current_domain
|
||||
if main_node:
|
||||
return main_node.current_domain
|
||||
return ""
|
||||
|
||||
func _gurt_select_handler(vm: LuauVM) -> int:
|
||||
var selector: String = vm.luaL_checkstring(1)
|
||||
|
||||
Reference in New Issue
Block a user