mirror of https://github.com/mpv-player/mpv
lua/js: fix user_data_del util function
This commit is contained in:
parent
0f3a041796
commit
0051037957
|
@ -205,7 +205,7 @@ function user_data_set(path, val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function user_data_del(path) {
|
function user_data_del(path) {
|
||||||
return mp.del_property_native("user-data/" + path);
|
return mp.del_property("user-data/" + path);
|
||||||
}
|
}
|
||||||
|
|
||||||
function user_data_get(path) {
|
function user_data_get(path) {
|
||||||
|
|
|
@ -840,7 +840,7 @@ function mp_utils.user_data_get(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
function mp_utils.user_data_del(path)
|
function mp_utils.user_data_del(path)
|
||||||
return mp.del_property_native("user-data/" .. path)
|
return mp.del_property("user-data/" .. path)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- cb(name, value) on change and on init
|
-- cb(name, value) on change and on init
|
||||||
|
|
Loading…
Reference in New Issue