GabrielDelepine / angular-css-injector

A angularJS service to load dynamically CSS files
MIT License
152 stars 90 forks source link

angular 1.2.3 only contains jqlite #5

Closed dcolley closed 10 years ago

dcolley commented 10 years ago

Error: [jqLite:nosel] Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element http://errors.angularjs.org/1.2.3/jqLite/nosel minErr/<@http://localhost/~user/app/spa/Scripts/angular/1.2.3/angular.js:78 JQLite@http://localhost/~user/app/spa/Scripts/angular/1.2.3/angular.js:2127 @http://localhost/~user/app/spa/Scripts/angular/angular-css-injector.js:15 ...

So [as of a certain release] your code has full dependency on jquery

GabrielDelepine commented 10 years ago

The newest release (v1.0) seams to raise an error when jQuery is not including the page.

I updated the code line 15 from " jQuery === undefined " to " typeof jQuery == 'undefined' " and it works.

Give me 5 minutes to publish a new release.

GabrielDelepine commented 10 years ago

I published the release 1.0.1 including the bug fix.

Thanks for opening this issue @dcolley !