From 13d5528a5f5a2f0feee5c742788a914d2371841e Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 9 Apr 2012 11:53:56 -0700 Subject: [PATCH] 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). --- src/ng/browser.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/ng/browser.js b/src/ng/browser.js index 97e9cf3e5c8b..376c3fd4756b 100644 --- a/src/ng/browser.js +++ b/src/ng/browser.js @@ -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