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
Description
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);
})