Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

Commit

Permalink
feat(jquery): remove jQuery dependency
Browse files Browse the repository at this point in the history
closes #2
  • Loading branch information
tinesoft committed Mar 3, 2016
1 parent ae726ba commit cc8c875
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ng-browser-update.js
Expand Up @@ -21,11 +21,17 @@ angular.module('ngBrowserUpdate', [])

function createScript($element)
{
$element.empty();
emptyElement($element);
$element.append(angular.element('<script src="'+SCRIPT_URL+'"></script>'));
}


function emptyElement($element){
while($element.firstChild){
$element.removeChild($element.firstChild);
}
}

return {
restrict: 'E',
scope: {
Expand Down

0 comments on commit cc8c875

Please sign in to comment.