tonytomov/jqGrid — pull request #401 by OlegKi (2012-12-19 22:42:04+00:00)
Title: More small optimizations

Hello Tony,

as I wrote you before in [the comment](https://github.com/tonytomov/jqGrid/pull/398#issuecomment-11535737) some other minor changes in the code of jqGrid are required to simplify the process of validation of jqGrid code with respect of [JSLint](http://www.jslint.com/) and [JSHint](http://www.jshint.com/).

The suggested changes do the following:

- eliminators the declaration of variables inside of `for` loop header
- replace the usage of global variable `jQuery` to the usage of local variable `$`
- fix formatting to remove the warning "Mixed spaces and tabs."
- fixing jshint options
- replacing of kind of testing for undefined in one more place of `grid.base.js` code (the line `if(typeof action === "undefined")` was replaced to `if(action === undefined)`)
- small optimization of code in `grid.formedit.js`. Dupplicated hovering functions bound to the buttons of navigator were replaced to common functions `onHoverIn`, `onHoverOut`

I hope that it will be no technical problems with merging of the pull request.

Best regards
Oleg