mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-24 18:30:23 +00:00
chore($browser): remove the addCss method
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).
This commit is contained in:
parent
b5406d276d
commit
13d5528a5f
1 changed files with 0 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue