Skip to content

Commit

Permalink
refactor(mvc.Listener): drop Vectorizer dependency (#2848)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus authored Jan 10, 2025
1 parent eaa478a commit 12b0c32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/joint-core/src/mvc/Listener.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import V from '../V/index.mjs';
import { Events } from './Events.mjs';

export class Listener {
Expand All @@ -9,7 +8,7 @@ export class Listener {
listenTo(object, evt, ...args) {
const { callbackArguments } = this;
// signature 1 - (object, eventHashMap, context)
if (V.isObject(evt)) {
if (evt && typeof evt === 'object') {
const [context = null] = args;
Object.entries(evt).forEach(([eventName, cb]) => {
if (typeof cb !== 'function') return;
Expand Down

0 comments on commit 12b0c32

Please sign in to comment.