Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore($browser): remove the addCss method
Browse files Browse the repository at this point in the history
this api was never supposed to be public. nobody should be relying
on it.

I'm removing it since angular doesn't need it.

BREAKING CHANGE: $browser.addCss was removed

apps the depend on this functionality should write a simple utility
function specific to the app (see this diff for hints).
  • Loading branch information
IgorMinar committed Apr 9, 2012
1 parent b5406d2 commit 13d5528
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/ng/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,23 +343,6 @@ function Browser(window, document, body, $log, $sniffer) {
// Misc API
//////////////////////////////////////////////////////////////

/**
* @ngdoc method
* @name angular.module.ng.$browser#addCss
* @methodOf angular.module.ng.$browser
*
* @param {string} url Url to css file
* @description
* Adds a stylesheet tag to the head.
*/
self.addCss = function(url) {
var link = jqLite(rawDocument.createElement('link'));
link.attr('rel', 'stylesheet');
link.attr('type', 'text/css');
link.attr('href', url);
body.append(link);
};


/**
* @ngdoc method
Expand Down

0 comments on commit 13d5528

Please sign in to comment.