append new items to the top of the todo

This commit is contained in:
ansuz
2017-07-26 15:37:16 +02:00
parent 69eaccbdef
commit 9734a4db80
2 changed files with 7 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ define([
if (!Array.isArray(proxy.order)) {
throw new Error('expected an array');
}
proxy.order.push(id);
proxy.order.unshift(id);
proxy.data[id] = obj;
};