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
add resizing about height of google-chart
Merge branch 'feature/resize'