Skip to content

Instantly share code, notes, and snippets.

@monjudoh
Created January 5, 2011 03:17
Show Gist options
  • Save monjudoh/765881 to your computer and use it in GitHub Desktop.
Save monjudoh/765881 to your computer and use it in GitHub Desktop.
IE(主に6,7)で「操作は中断されました」エラーが出るヶ所でstackTraceをalertで出す。これに依存→ https://github.com/emwendelin/javascript-stacktrace
(function(){
var domManip = jQuery.fn.domManip;
jQuery.fn.domManip = function(){
if(!jQuery.isReady && !!this.closest('body').size() ) {
var msg = printStackTrace().join('\n');
alert(msg);
throw new Error();
}
return domManip.apply(this,arguments);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment