From 7a3bb9f2985dfaa6916a71071f1d3b9c74d64b89 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. --- 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 5d1075777ff5..8b94971319c5 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) {