Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit e63a884

Browse files
Gabriel DelépineGabriel Delépine
authored andcommitted
Remove jQuery dependency also for IE <= 8
v1.0.3 beta1
1 parent ede88b2 commit e63a884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

angular-css-injector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* angular-css-injector v1.0.2
2+
* angular-css-injector v1.0.3 beta1
33
* Written by Gabriel Delépine
44
* Special thanks to (github users) : @kleiinnn
55
* License: MIT
@@ -12,7 +12,7 @@ angular.module('angular.css.injector', [])
1212
function CssInjector($compile, $rootScope){
1313
// Variables
1414
var singlePageMode = false,
15-
head = angular.element(typeof jQuery == "undefined" ? document.querySelector('head') : 'head'), // TO make the code IE < 8 compatible, include jQuery in your page
15+
head = angular.element(document.getElementsByTagName('head')[0]),
1616
scope;
1717

1818
// Capture the event `locationChangeStart` when the url change. If singlePageMode===TRUE, call the function `removeAll`

0 commit comments

Comments
 (0)