"EXAMPLE 4: Firing an untrusted pointer event from script" not working?

Maybe a naive question that shows my lack of JS chops, but: I've been 
trying to actually generate pointer events programmatically using code 
based on example 4 
https://dvcs.w3.org/hg/pointerevents/raw-file/tip/pointerEvents.html#examples
but in IE11, all I get when trying

var event = new PointerEvent(...);

is an "Object doesn't support this action" error.

Is the problem with the example code, or is it a bug/incomplete 
implementation in IE11?

Apologies if the answer is obvious...

P
-- 
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke

Received on Tuesday, 22 July 2014 08:28:06 UTC