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

Commit 13d5528

Browse files
committed
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).
1 parent b5406d2 commit 13d5528

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/ng/browser.js

-17
Original file line numberDiff line numberDiff line change
@@ -343,23 +343,6 @@ function Browser(window, document, body, $log, $sniffer) {
343343
// Misc API
344344
//////////////////////////////////////////////////////////////
345345

346-
/**
347-
* @ngdoc method
348-
* @name angular.module.ng.$browser#addCss
349-
* @methodOf angular.module.ng.$browser
350-
*
351-
* @param {string} url Url to css file
352-
* @description
353-
* Adds a stylesheet tag to the head.
354-
*/
355-
self.addCss = function(url) {
356-
var link = jqLite(rawDocument.createElement('link'));
357-
link.attr('rel', 'stylesheet');
358-
link.attr('type', 'text/css');
359-
link.attr('href', url);
360-
body.append(link);
361-
};
362-
363346

364347
/**
365348
* @ngdoc method

0 commit comments

Comments
 (0)