protofunc()
jQuery.conConflict
Tags:
deutsch
,
javascript
,
jquery
jQuery.conConflict = function(extreme){ var $ = jQuery; var dontOverwrite = ["getInterface","name","addEventListener","constructor","jQuery","location","window","document","navigator","netscape","XPCSafeJSObjectWrapper","XPCNativeWrapper","GeckoActiveXObject","Components","parent","length","setInterval","top","scrollbars","scrollX","scrollY","scrollTo","scrollBy","getSelection","scrollByLines","scrollByPages","sizeToContent","prompt","dump","setTimeout","clearTimeout","clearInterval","setResizable","captureEvents","releaseEvents","routeEvent","enableExternalCapture","disableExternalCapture","open","openDialog","frames","find","applicationCache","self","screen","history","content","menubar","toolbar","locationbar","personalbar","statusbar","directories","closed","crypto","pkcs11","controllers","opener","status","defaultStatus","innerWidth","innerHeight","outerWidth","outerHeight","screenX","screenY","pageXOffset","pageYOffset","scrollMaxX","scrollMaxY","fullScreen","alert","confirm","focus","blur","back","forward","home","stop","print","moveTo","moveBy","resizeTo","resizeBy","scroll","close","updateCommands","atob","btoa","frameElement","showModalDialog","postMessage","removeEventListener","dispatchEvent","getComputedStyle","sessionStorage","globalStorage"]; function doIt(){ try{ for(var prop in window){ if($.inArray(prop, dontOverwrite) == -1){ window[prop] = $; } } window.onload = $; window.$ = $; }catch(e){} } function doItExtreme(){ try{ for(var prop in $.prototype){ Object.prototype[prop] = $.prototype[prop]; } }catch(e){} } doIt(); if(extreme){ doItExtreme(); setInterval(doIt, 999); $(doIt); $(window).load(doIt); } };
comments (0)
Written
November 10, 2008
by
alexander farkas
Navigation
Home
About
Protofunc Script Download (1. Alpha)
Archives
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
February 2008
November 2007
Tags
deutsch
english
javascript
accessibility
ajax
jquery
tutorial
video
Blogroll
./with Imagination
456 Berea Street
Ajaxian
dean.edwards
DOM Scripting Blog
Einfach für Alle
planet.jquery
QuirksBlog
Wait till I come!