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

refactor($sce): don't depend on $document #9671

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ng/sce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down