开发者

Disconnecting Dojo Inline Events

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜