Don't know why (or with what Update Rollup) event.Mode was removed, but in UR-15, event.Mode does not work as documented here:
It's alright though, in CRM 2011 they have a new construct documented here you can change your code to utilize.
Just a quick tip for your Tuesday in case you install UR-15 and bump into this!
UPDATE: It helps to understand how to pass the context as the first parameter as shown in the blogpost below, if you are having trouble after reading the documentation below, check this out:
UPDATE 2: It seems that this might only be a problem if using IE 10. There are other CRM 4.0 syntax items that won't work properly for IE 10 that I bumped into also yesterday, but most things still work.