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

Commit 1785251

Browse files
committed
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
1 parent fe58238 commit 1785251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/sce.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,8 @@ function $SceProvider() {
718718
* sce.js and sceSpecs.js would need to be aware of this detail.
719719
*/
720720

721-
this.$get = ['$document', '$parse', '$sceDelegate', function(
722-
$document, $parse, $sceDelegate) {
721+
this.$get = ['$parse', '$sceDelegate', function(
722+
$parse, $sceDelegate) {
723723
// Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow
724724
// the "expression(javascript expression)" syntax which is insecure.
725725
if (enabled && msie < 8) {

0 commit comments

Comments
 (0)