nlaplante/angular-google-maps — pull request #262 by kurtschwarz (2014-02-16 16:17:03+00:00)
Title: Fixed Window templateUrl throwing error when jQuery is not included. Fixes #258

This PR fixes an issue when using angular-google-maps without jQuery. If you try to use the Window directive with the templateUrl parameter and you don't have jQuery you will trigger this error:

```js
TypeError: Object [object Object] has no method 'get'
at http://127.0.0.1:1337/app.js:28311:46
at wrappedCallback (http://127.0.0.1:1337/app.js:13015:81)
at wrappedCallback (http://127.0.0.1:1337/app.js:13015:81)
at http://127.0.0.1:1337/app.js:13101:26
at Scope.$eval (http://127.0.0.1:1337/app.js:14021:28)
at Scope.$digest (http://127.0.0.1:1337/app.js:13847:31)
at Scope.$delegate.__proto__.$digest (:844:31)
at Scope.$apply (http://127.0.0.1:1337/app.js:14127:24)
at Scope.$delegate.__proto__.$apply (:855:30)
at http://127.0.0.1:1337/app.js:15660:36
```

This error is caused by jQLite not having a .get method, this is something jQuery adds to the prototype. The workaround is to change .get(0) to [0] for any $compile functions.