From 8064bfa49ce01a9770f161f4309d066cd9bfa8f9 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 9 Feb 2022 12:15:59 +0800 Subject: [PATCH] update --- src/core/3.ob.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/3.ob.js b/src/core/3.ob.js index 808488a76..6eb2b53cd 100644 --- a/src/core/3.ob.js +++ b/src/core/3.ob.js @@ -64,11 +64,10 @@ if (this.options.listeners != null) { _.each(this.options.listeners, function (lis, eventName) { if (_.isFunction(lis)) { - self.on(eventName, _.bind(lis, self)); + self.on(eventName, lis); return; } - (lis.target ? lis.target : self)[lis.once ? "once" : "on"] - (lis.eventName, _.bind(lis.action, self)); + (lis.target ? lis.target : self)[lis.once ? "once" : "on"](lis.eventName, lis.action); }); delete this.options.listeners; }