isobit-ui 0.0.421 → 0.0.423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.423
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -6256,26 +6256,22 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6256
6256
|
|
|
6257
6257
|
return _await(me.getStoredList(store), function (storedList) {
|
|
6258
6258
|
if (!storedList) storedList = [];
|
|
6259
|
-
console.log(1111111);
|
|
6260
6259
|
|
|
6261
6260
|
if (o.id) {
|
|
6262
6261
|
for (var k = 0; k < storedList.length; k++) {
|
|
6263
6262
|
if (storedList[k].tmpId == o.tmpId) {
|
|
6264
6263
|
delete o.tmpSynchronized;
|
|
6265
6264
|
storedList[k] = o;
|
|
6266
|
-
return;
|
|
6267
6265
|
}
|
|
6268
6266
|
}
|
|
6269
6267
|
}
|
|
6270
6268
|
|
|
6271
|
-
console.log(22222);
|
|
6272
6269
|
var db = window._.db;
|
|
6273
6270
|
var objectStore = db.transaction([store], "readwrite").objectStore(store);
|
|
6274
|
-
console.log('!o.id=' + !o.id);
|
|
6275
6271
|
|
|
6276
6272
|
if (!o.id) {
|
|
6277
|
-
o.
|
|
6278
|
-
o.
|
|
6273
|
+
o.tmpId = 1 * new Date();
|
|
6274
|
+
o.id = -o.tmpId; //add new item to start to array
|
|
6279
6275
|
|
|
6280
6276
|
storedList.unshift(o);
|
|
6281
6277
|
objectStore.add(o);
|