Skip to content

Commit

Permalink
Add trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou committed Aug 3, 2023
1 parent e932ee9 commit fdb9562
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function event(spec, my) {
function that(callback) {
// eslint-disable-next-line no-console
console.warn(
"Using an event as a function is deprecated. Send register() to the event instead."
"Using an event as a function is deprecated. Send register() to the event instead.",
);

return that.register(callback);
Expand All @@ -33,7 +33,7 @@ export default function event(spec, my) {
that.on = function (callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending on() to an event is deprecated. Send register() instead."
"Sending on() to an event is deprecated. Send register() instead.",
);

return that.register(callback);
Expand Down Expand Up @@ -128,7 +128,7 @@ export default function event(spec, my) {
that.onceOn = function (callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending onceOn() to an event is deprecated. Send registerOnce() instead."
"Sending onceOn() to an event is deprecated. Send registerOnce() instead.",
);

return that.registerOnce(callback);
Expand Down Expand Up @@ -161,7 +161,7 @@ export default function event(spec, my) {
that.off = function (binding) {
// eslint-disable-next-line no-console
console.warn(
"Sending off() to an event is deprecated. Send unregister() instead."
"Sending off() to an event is deprecated. Send unregister() instead.",
);

that.unregister(binding);
Expand Down Expand Up @@ -222,7 +222,7 @@ export default function event(spec, my) {
*/
function bindCallback(callback) {
let binding = bindings.filter((binding) =>
binding.isForCallback(callback)
binding.isForCallback(callback),
)[0];

// Don't register the same callback twice:
Expand Down
6 changes: 3 additions & 3 deletions src/eventCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function eventCategory() {
that.on = function (name, callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending on() to a category is deprecated. Send register() instead."
"Sending on() to a category is deprecated. Send register() instead.",
);

return that.register(name, callback);
Expand All @@ -68,7 +68,7 @@ export default function eventCategory() {
that.off = function (name, binding) {
// eslint-disable-next-line no-console
console.warn(
"Sending off() to a category is deprecated. Send unregister() instead."
"Sending off() to a category is deprecated. Send unregister() instead.",
);

return that.unregister(name, binding);
Expand All @@ -94,7 +94,7 @@ export default function eventCategory() {
that.onceOn = function (name, callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending onceOn() to a category is deprecated. Send registerOnce() instead."
"Sending onceOn() to a category is deprecated. Send registerOnce() instead.",
);

return that.registerOnce(name, callback);
Expand Down

0 comments on commit fdb9562

Please sign in to comment.