User talk:TOR

Hi, TOR I was checking your modifications to the MediaWiki:Common.js and MediaWiki:Monobook.js here at Wookipedia. And there are some things I don't understand since I just started a few days studying JS

So at common you left: // this was moved to Monobook.js --TOR  function replaceSearchIcon { return; }

function rand(n) {    return Math.round(Math.random * n); } Now why leave function replaceSearchIcon? im confuse on this because then there are 2 functions named replaceSearchIcon one at common and one at monobook, I read your summary that says its because an Ajax on every page view load? can you elaborate? because then you disable the call in common.js it at the function loadFunc

Then also why did you left function rand(n) on common? was it that due to the lack of coffee? =p

Also a while ago at the English Dofus wiki we had issues with our JS due the change of URL for undisclosed reason so JSharp was kind to help us and he disable the YAHOO.util.Event.onDOMReady(loadFunc); back to addOnloadHook(loadFunc); stating switch bad to onload but i see you use it on the monobook.js so i wonder whats the advantage between each one of those.

--Cizagna (Talk) 20:21, 24 December 2008 (UTC)