[Mozile] notification on change

James A. Overton james at overton.ca
Mon Dec 18 08:41:14 PST 2006


Thanks for the patch!

It'd be nice to have it working in IE as well. I'll take a look next  
time I'm hacking Mozile...

James


On 2006-Dec-16, at 5:31 PM, Reto Bachmann-Gmür wrote:

> thanks!
>> ...
>>>>  I look forward to seeing a patch :^)
>>>>
>>>> James
>>>>
> Here you go with a version which works in firefox:
>
> Index: edit.js
> ===================================================================
> RCS file: /cvs/mozile/www/0.8/src/edit.js,v
> retrieving revision 1.17
> diff -r1.17 edit.js
> 754a755
>>         mozile.notifyChange(event.node);
> Index: event.js
> ===================================================================
> RCS file: /cvs/mozile/www/0.8/src/event.js,v
> retrieving revision 1.3
> diff -r1.3 event.js
> 193a194,200
>> mozile.notifyChange = function(target) {
>>     var event = document.createEvent("Events");
>>     event.initEvent("change", true, true);
>>     target.dispatchEvent(event);
>> }
>>
>>
> 199a207
>>
> 203a212
>>         mozile.notifyChange(event.node);
>
> Reto
>
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile



More information about the Mozile mailing list