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

Illegal Invocation / Infinite Digest on deep $watch if a property is a DOM or jQuery object. #11001

Open
@micah-williamson

Description

@micah-williamson

Example JSBin:

http://jsbin.com/favorinava/6/edit

Steps to reproduce:

  • Create a scope.
  • Set a property on the scope to a DOM element.
  • Create a $watch on the scope and set the objectEquality property to true.
angular.module('app', [])
  .controller('SomeCtrl', function($scope) {
    $scope.data = {
      test: document.body
    };

    // No problem
    $scope.$watch('data', function(newVal) {}, false);

    // Problem
    $scope.$watch('data', function(newVal) {}, true);
  })

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions