1
0
Fork 0

Apply patch by Tobias Dammers - correct RTE.lcontroller equals function to fix the infamous model not found error

This commit is contained in:
Jonathan Redpath 2021-12-22 13:16:17 +00:00 committed by Stuart Buchanan
parent 3261f4a97c
commit 18eaba13f4

View file

@ -25,7 +25,7 @@ var new = func(layer) {
map: layer.map,
listeners: [],
};
layer.searcher._equals = func(l,r) 0; # TODO: create model objects instead?
layer.searcher._equals = func(l,r) return (l == r);
append(m.listeners, setlistener(layer.options.active_node, func m.layer.update() ),
setlistener(layer.options.wp_num, func m.layer.update() ));