BR0kEN- / simpleTooltip

CSS tooltips with position control via JS.
http://firstvector.org/simpleTooltip
MIT License
38 stars 8 forks source link

Some js code style refactoring #2

Closed ovr closed 11 years ago

ovr commented 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')

BR0kEN- commented 11 years ago

Thanks for request. I've done the code refactoring in one's own way