Under certain circumstances $scope.$$watchers may become null. The following segment in editable-element/controller.js is the cause. Suggest skipping this block if $scope.$$watchers is null.
// Manually remove the watcher on 'has-error' to prevent a memory leak on it.
for (var i = 0, len = $scope.$$watchers.length; i < len; i++) {
if ($scope.$$watchers[i] !== undefined && $scope.$$watchers[i].last && $scope.$$watchers[i].last !== undefined &&
typeof $scope.$$watchers[i].last === 'object' && "has-error" in $scope.$$watchers[i].last) {
$scope.$$watchers.splice(i, 1);
break;
}
}
angular.js:13642 TypeError: Cannot read property 'length' of null
at EditableController.self.hide (xeditable.js:799)
at xeditable.js:1323
at Object.forEach (angular.js:322)
at Object.$hide (xeditable.js:1322)
at Object.$cancel (xeditable.js:1347)
at xeditable.js:1187
at Object.forEach (angular.js:322)
at xeditable.js:1187
at Scope.$eval (angular.js:17378)
at Scope.$apply (angular.js:17478)
Under certain circumstances $scope.$$watchers may become null. The following segment in editable-element/controller.js is the cause. Suggest skipping this block if $scope.$$watchers is null.