mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-08 09:07:46 +08:00
refactor($sce): don't depend on $document
The $sce dependency on $document was added in64241a5because it was thought it's not possible to easiy use the msie variable in this module. This was changed in45252c3, though so it's no longer needed to depend on $document. Closes #9671
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user