开发者

Disconnecting Dojo Inline Events

开发者 https://www.devze.com 2023-02-04 00:44 出处:网络
Is it possible to disconnect an event added to a Dojo dijit using the inline method? For example these methods on a dojox.form.Rating:

Is it possible to disconnect an event added to a Dojo dijit using the inline method?

For example these methods on a dojox.form.Rating:

<span id="rating_0" dojoType="dojox.form.Rating" numStars="5" value="4">
  <script type="dojo/event" event="onMouseOver">
  oCatalogueGallery.display开发者_如何学编程RatingText( 0 )
  </script>
  <script type="dojo/event" event="onMouseOut">
  oCatalogueGallery.displayRatingText( 0 )
  </script>
  <script type="dojo/event" event="onClick">
  oCatalogueGallery.updateRating( 0, 3048, 4 )
  </script>
</span>


Nope. In order to remove an event handler, you need a handle to it, and I don't see a way to get a handle besides getting it as the return value from connect().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号