Skip to content

Instantly share code, notes, and snippets.

@Reinmar Reinmar/doom.js
Created Oct 23, 2011

Embed
What would you like to do?
Stupid DOM
({ r: window.webkitRequestAnimationFrame }).r(alert.bind(null, 1));
//Uncaught TypeError: Illegal invocation
({ r: window.mozRequestAnimationFrame }).r(alert.bind(null, 1));
//Error: Illegal operation on WrappedNative prototype object
var r = mozRequestAnimationFrame;
r.call(null, alert.bind(null, 1));
//ok, context is not important, so why can't I call DOM methods in whichever I want? :|
//because this is DOM!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.