mirror of
https://github.com/swc-project/swc.git
synced 2025-01-02 02:26:09 +03:00
14 lines
352 B
JavaScript
14 lines
352 B
JavaScript
|
export const obj = {
|
||
|
fireWith: function (context, args) {
|
||
|
args = args || [];
|
||
|
args = [context, args.slice ? args.slice() : args];
|
||
|
if (list && (!fired || stack)) {
|
||
|
if (firing) {
|
||
|
stack.push(args);
|
||
|
} else {
|
||
|
fire(args);
|
||
|
}
|
||
|
}
|
||
|
return this;
|
||
|
},
|
||
|
}
|