Make nsITimerCallback a [function], to allow JS to pass a function object instead of this interface Bug 430305 r/sr/a=shaver
authormozilla.BenB@bucksch.org
Wed, 23 Apr 2008 10:42:58 -0700
changeset 14625 15ef8eb1686df4d1e65b12d5879cec4ab71744d5
parent 14624 03d1e9a9ae0e7c2cdd00d9478cbc73ff0a86b3b2
child 14626 049cb16f9dc8cab8f61f0a8b4fde5496a48b4861
push idunknown
push userunknown
push dateunknown
bugs430305
milestone1.9pre
Make nsITimerCallback a [function], to allow JS to pass a function object instead of this interface Bug 430305 r/sr/a=shaver
xpcom/threads/nsITimer.idl
--- a/xpcom/threads/nsITimer.idl
+++ b/xpcom/threads/nsITimer.idl
@@ -61,17 +61,17 @@ typedef void (*nsTimerCallbackFunc) (nsI
 
 native nsTimerCallbackFunc(nsTimerCallbackFunc);
 
 /**
  * The callback interface for timers.
  */
 interface nsITimer;
 
-[scriptable, uuid(a796816d-7d47-4348-9ab8-c7aeb3216a7d)]
+[function, scriptable, uuid(a796816d-7d47-4348-9ab8-c7aeb3216a7d)]
 interface nsITimerCallback : nsISupports
 {
   /**
    * @param aTimer the timer which has expired
    */
   void notify(in nsITimer timer);
 };