easy-file-system 2.1.131 → 2.1.133
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/README.md +2 -2
- package/example.js +58 -53
- package/lib/button/toggle.js +1 -1
- package/lib/div/item/entry/drag/directoryName.js +1 -1
- package/lib/div/item/entry/drag/fileName.js +1 -1
- package/lib/div/item/entry/drag.js +1 -1
- package/lib/div/item/entry/marker.js +1 -1
- package/lib/div/item/entry.js +1 -1
- package/lib/example/view/explorer/first.js +1 -1
- package/lib/example/view/explorer/second.js +1 -1
- package/lib/example/view/rubbishBin.js +1 -1
- package/lib/example/view.js +8 -1
- package/lib/explorer.js +1 -1
- package/lib/item/entry/drag/directoryName.js +1 -1
- package/lib/item/entry/drag/fileName.js +1 -1
- package/lib/item/entry/drag.js +16 -20
- package/lib/item/entry/marker/directoryName.js +1 -1
- package/lib/item/entry/marker/fileName.js +1 -1
- package/lib/item/entry/marker.js +1 -1
- package/lib/item/entry.js +1 -1
- package/lib/list/entries.js +1 -1
- package/lib/rubbishBin.js +1 -1
- package/lib/span/name.js +1 -1
- package/lib/svg/directoryName.js +1 -1
- package/lib/svg/fileName.js +1 -1
- package/lib/svg/marker.js +1 -1
- package/lib/svg/rubbishBin/closed.js +1 -1
- package/lib/svg/rubbishBin/open.js +1 -1
- package/lib/svg/toggle/down.js +1 -1
- package/lib/svg/toggle/up.js +1 -1
- package/package.json +3 -3
- package/src/example/view.js +9 -0
- package/src/item/entry/drag.js +20 -25
package/README.md
CHANGED
|
@@ -128,9 +128,9 @@ Again note that no callback is passed.
|
|
|
128
128
|
|
|
129
129
|
### Handling moving files and directories
|
|
130
130
|
|
|
131
|
-
When file and directory entries are moved, the requisite handlers are invoked with three arguments, namely an array of path maps, a reference to the explorer and a `done` callback method. You *must* call the `done()` method when you are done. Each element of the array of path maps is a plain old JavaScript object with `sourceEntryPath`, `targetEntryPath`, `entryDirectory` and `collapsed` properties. The `entryDirectory` property is set to `true` if the entry is a directory. In the case of file path entries, the
|
|
131
|
+
When file and directory entries are moved, the requisite handlers are invoked with three arguments, namely an array of path maps, a reference to the explorer and a `done` callback method. You *must* call the `done()` method when you are done. Each element of the array of path maps is a plain old JavaScript object with `sourceEntryPath`, `targetEntryPath`, `entryDirectory` and `collapsed` properties. The `entryDirectory` property is set to `true` if the entry is a directory. In the case of file path entries, the ``collapsed`` property is `null`.
|
|
132
132
|
|
|
133
|
-
The path maps are mutable
|
|
133
|
+
The path maps are mutable and changing their source and target paths affects behaviour. On the one hand setting the source path in a path map to `null` means that the corresponding source path is not removed. On the other hand setting the target path to `null` means that the corresponding target path is not added. Therefore, if you want to entry to be moved as expected then leave the corresponding path map alone, whereas if you want the entry to be left in place then set both the `sourceEntryPath` and `targetEntryPath` properties of the requisite path map to `null`.
|
|
134
134
|
|
|
135
135
|
### Handling removing files and directories
|
|
136
136
|
|