You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Eventizer.js
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -322,7 +322,7 @@ export default class extends EventTarget {
322
322
// console.log(`[event] Fire hook "${name}"${args.length ? ' with ' + args.length + ' arguments' : ''}`);
323
323
value=callback.apply(this,args);
324
324
if(name==='file-added'&&value===false){
325
-
console.warn('In Flow.js 3.x, file-added event is an action rather than a fitler. return value is ignored but removing the `file` property allows to skip an enqueued file.');
325
+
console.warn('In Flow.js 3.x, file-added event is an action rather than a filter. Return value is ignored but removing the `file` property allows to skip an enqueued file.');
326
326
}
327
327
328
328
if(isFilter){
@@ -347,17 +347,18 @@ export default class extends EventTarget {
347
347
* @return {mixed} In the case of *actions*: The first argument (possibly modified by hooks).
348
348
*/
349
349
asyncaHook(name, ...args){
350
-
letcalls=this._asyncHooks[name]||[],
351
-
isFilter=this.isFilter(name);
350
+
constcalls=this._asyncHooks[name]||[],
351
+
isFilter=this.isFilter(name);
352
352
353
353
if(!calls.length){
354
354
returnisFilter ? true : args[0];
355
355
}
356
356
357
357
// console.log(`[event] Fire ${calls.length} async hook for "${name}"${args.length ? ' with ' + args.length + ' arguments' : ''}`);
0 commit comments