简体   繁体   English

使用prototype.js,如何获取与对象关联的观察者列表?

[英]Using prototype.js, how do I get the list of observers associated with an object?

I'm attempting to return a list of observers associated with a particular object using prototype.js 1.6.1. 我正在尝试使用prototype.js 1.6.1返回与特定对象关联的观察者列表。 I've googled my eyes out all day and am getting frustrated. 我整天用谷歌搜索,感到沮丧。 I've discovered two methods that used to work with older versions, but do not work with the latest version of the library. 我发现有两种方法可用于旧版本,但不适用于最新版本的库。 These include: 这些包括:

  • Event.oberservers (Worked with version 1.5) Event.oberservers(与1.5版一起使用)
  • Event.cache (Worked with a minor build released a year or so ago) Event.cache(与大约一年前发布的次要版本一起使用)

Any suggestions would be greatly appreciated! 任何建议将不胜感激!

除了CMS指向我的链接之外, 这个问题也很有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM