From 1785251eab2e2f5719054777eeacca4becd5f76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Sat, 18 Oct 2014 01:07:49 +0200 Subject: [PATCH] refactor($sce): don't depend on $document The $sce dependency on $document was added in 64241a5 because it was thought it's not possible to easiy use the msie variable in this module. This was changed in 45252c3, though so it's no longer needed to depend on $document. Closes #9671 --- src/ng/sce.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/sce.js b/src/ng/sce.js index 5d107577..8b949713 100644 --- a/src/ng/sce.js +++ b/src/ng/sce.js @@ -718,8 +718,8 @@ function $SceProvider() { * sce.js and sceSpecs.js would need to be aware of this detail. */ - this.$get = ['$document', '$parse', '$sceDelegate', function( - $document, $parse, $sceDelegate) { + this.$get = ['$parse', '$sceDelegate', function( + $parse, $sceDelegate) { // Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow // the "expression(javascript expression)" syntax which is insecure. if (enabled && msie < 8) {