Basically, I've gotten really lazy, and I've seen way too many bugs caused by typoes in really long function names, so I made a function in javascript
function getels(id){
return document.getElementById(id);
}
Is this OK coding convention? Does it slow down the code noticeably?
Does it really matter if I use it, or should I not. It is a fairly general question, with javascript being the example I use here.