Closed ovr closed 11 years ago
Bad if (success) do();
God if (success) { do(); }
i = ''; //global var i = ''; //local
Good var $element = $('.class'); $element i think its dom element Bad var element = $('.class')
Thanks for request. I've done the code refactoring in one's own way
Bad if (success) do();
God if (success) { do(); }
i = ''; //global var i = ''; //local
Good var $element = $('.class'); $element i think its dom element Bad var element = $('.class')