main.js : tiny patch until things are working correctly.

This commit is contained in:
ansuz 2016-02-23 16:22:09 +01:00
parent 9ce59c985f
commit e87a4599a4

View file

@ -73,7 +73,9 @@ define([
// pass in the cursorState so we don't try to recover nodes
// which weren't lost to begin with
cursor.recover(cursorState);
// TODO recover doesn't handle its arguments correctly
// so for now just pass in 3 :(
cursor.recover(3||cursorState);
cursorState = cursor.isLost();
if (cursorState) {