// Introduced in DOM Level 2:
interface EventListener {
  void               handleEvent(in Event evt);
};


My event handler is going like this:

var treeCellCanvas = {
  // nsISupports
  QueryInterface: function(aIID) {
    if (aIID.equals(Ci.nsITreeCellCanvas) ||
        aIID.equals(Ci.nsISupports) ||
        aIID.equals(Ci.nsISupportsWeakReference))
      return this;
    throw Components.results.NS_NOINTERFACE;
  },
  handleEvent: function(event) {
    var x = event;
  },
};


But the function
target.addEventListener(type, listener[, useCapture]); 
target.addEventListener(type, listener[, useCapture, wantsUntrusted ]); // 
always have a type entry, how to avoid of this?
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to