Cleanup duplicate vars, unused params, and hoisting.

var i was being declared in the same function multiple times.
$attr and event in resize callback were not being used.
Moving variable declarations to top of function, to be a bit more explicit because of hoisting.
Use angular.isArray instead of Array.isArray.

Array.isArray is ECMAScript 5.1, and unsupported by older versions of IE. Rather than polyfilling the functionality, we should just use angulars built-in function.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
Take angular as an argument in the IIFE.

Since we already pass in document and window, there is no reason to reference angular as a global variable.
fix of unselect issue
Merge pull request #69 from voxtex/code-cleanup

Cleanup duplicate vars, unused params, and hoisting.
Merge pull request #70 from voxtex/use-angular-is-array

Use angular.isArray instead of Array.isArray.
Merge pull request #71 from voxtex/global-angular-reference

Take angular as an argument in the IIFE.
Merge pull request #72 from vepasto/gh-pages

fix of unselect issue
Making sure that there are no double calls to draw due to updating the watched object
Merge pull request #76 from zbrunson/gh-pages

Remove double draws
Solved the double draw issue without using angular.copy() on the base chart object.  Made $watch on chart parameters more selective, and other small changes to prevent directive from making changes to watched objects.
Merge pull request #85 from Balrog30/gh-pages

Solved the double draw issue without using angular.copy()...
Update bower.json

Please update angular dependency. Works just fine with latest angular package
Merge pull request #87 from mgibas/patch-1

Update bower.json angular dependency
Merge pull request #1 from bouil/gh-pages

Merge upstream.
Removing JS errors if the chart is not initialized
Merge pull request #90 from zbrunson/gh-pages

Removing JS errors if the chart is not initialized
Merge branch 'gh-pages' of https://github.com/bouil/angular-google-chart into gh-pages
Marked select attribute as deprecated, to be replaced by on-select.
Moved iterator variable declaration to loop scope. No need outside loop.