diff options
| author | Igor Minar | 2012-04-09 11:53:56 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-04-09 15:21:46 -0700 |
| commit | 13d5528a5f5a2f0feee5c742788a914d2371841e (patch) | |
| tree | 8bde71786107a79fa99eff132930b7b3dfa3a86a /src | |
| parent | b5406d276d73bcb0319eb451fa1cf2aec1e67946 (diff) | |
| download | angular.js-13d5528a5f5a2f0feee5c742788a914d2371841e.tar.bz2 | |
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).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/browser.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/ng/browser.js b/src/ng/browser.js index 97e9cf3e..376c3fd4 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 |
