easy-file-system 2.1.110 → 2.1.114

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.
@@ -77,6 +77,13 @@ class DragEntryItem extends EntryItem {
77
77
  markerEntryItemExplorer.dropDragEntryItem(dragEntryItem, done);
78
78
  }
79
79
 
80
+ delayedClick() {
81
+ const explorer = this.getExplorer(),
82
+ dragEntryItem = this; ///
83
+
84
+ explorer.selectOrDeselectDragEntryItem(dragEntryItem);
85
+ }
86
+
80
87
  hasNameChanged() {
81
88
  const name = this.getName(),
82
89
  nameSpanName = this.getNameSpanName(),
@@ -253,7 +253,9 @@ class EntriesList extends Element {
253
253
  }
254
254
 
255
255
  addEntryItem(entryItem) {
256
- const nextEntryItem = entryItem, ///
256
+ const explorer = this.getExplorer(),
257
+ mounted = explorer.isMounted(),
258
+ nextEntryItem = entryItem, ///
257
259
  previousEntryItem = this.findEntryItem((entryItem) => {
258
260
  const nextEntryBeforeEntryItem = nextEntryItem.isBefore(entryItem);
259
261
 
@@ -263,14 +265,23 @@ class EntriesList extends Element {
263
265
  });
264
266
 
265
267
  if (previousEntryItem === null) {
266
- this.mount(entryItem);
268
+ mounted ?
269
+ this.mount(entryItem) :
270
+ this.add(entryItem);
267
271
  } else {
268
- entryItem.mountBefore(previousEntryItem);
272
+ mounted ?
273
+ entryItem.mountBefore(previousEntryItem) :
274
+ entryItem.insertBefore(previousEntryItem);
269
275
  }
270
276
  }
271
277
 
272
278
  removeEntryItem(entryItem) {
273
- this.unmount(entryItem);
279
+ const explorer = this.getExplorer(),
280
+ mounted = explorer.isMounted();
281
+
282
+ mounted ?
283
+ this.unmount(entryItem) :
284
+ this.remove(entryItem);
274
285
  }
275
286
 
276
287
  removeEntryItems() {