src/filesystem/impls/appshell/AppshellFileSystem.js
function _enqueueChange(changedPath, stats) {
        _pendingChanges[changedPath] = stats;
        if (!_changeTimeout) {
            _changeTimeout = window.setTimeout(function () {
                if (_changeCallback) {
                    Object.keys(_pendingChanges).forEach(function (path) {
                        _changeCallback(path, _pendingChanges[path]);
                    });
                }

                _changeTimeout = null;
                _pendingChanges = {};
            }, FILE_WATCHER_BATCH_TIMEOUT);
        }
    }
function _enqueueChange(changedPath, stats) {
        _pendingChanges[changedPath] = stats;
        if (!_changeTimeout) {
            _changeTimeout = window.setTimeout(function () {
                if (_changeCallback) {
                    Object.keys(_pendingChanges).forEach(function (path) {
                        _changeCallback(path, _pendingChanges[path]);
                    });
                }

                _changeTimeout = null;
                _pendingChanges = {};
            }, FILE_WATCHER_BATCH_TIMEOUT);
        }
    }
function _enqueueChange ( changedPath , stats ) { _pendingChanges [ changedPath ] = stats ; if ( ! _changeTimeout ) { _changeTimeout = window . setTimeout ( function ( ) { if ( _changeCallback ) { Object . keys ( _pendingChanges ) . forEach ( function ( path ) { _changeCallback ( path , _pendingChanges [ path ] ) ; } ) ; } _changeTimeout = null ; _pendingChanges = { } ; } , FILE_WATCHER_BATCH_TIMEOUT ) ; } }
Enqueue a file change event for eventual reporting back to the FileSystem.

@param {string} changedPath The path that was changed
@param {object} stats Stats coming from the underlying watcher, if available
@private
Enqueue a file change event for eventual reporting back to the FileSystem .