-
Notifications
You must be signed in to change notification settings - Fork 27.4k
'list.filter is not a function' in filterFromRegistry in animateQueue.js in 1.5.5+ #14804
Comments
I don't see why this would be a problem. Omitting the third parameter ( |
Broken by ea4120b |
This could happen under some circumstances if function filterFromRegistry(list, matchContainer, matchCallback) {
if (!list) return list;
...
} cc @Narretz |
shows The function body is:
which is defined in our code as:
and used to disable a button if none of the checkboxes are selected:
|
@gkalpak Since you are assigned, do you want to write a fix for this? |
@Narretz, as far as I understand from @kyrylkov's comments, the reason this breaks is because they added custom, enumerable properties on We could use |
Could we also use callbackRegistry = createMap()? |
Probably 😃 |
…ct.prototype` Fixes angular#14804
…n `Object.prototype` Fixes angular#14804
is this on master yet? |
Yes |
Note: for support questions, please use one of these channels: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
error:
list.filter is not a function
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).
call
$animate.off(element);
What is the expected behavior?
works in 1.5.3 and before
What is the motivation / use case for changing the behavior?
bug introduced in 1.5.5 when
filterFromRegistry
was changed from a being local function of$animate.off
method inanimateQueue.js
Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.
1.5.5 and later, all browsers and OSes. Works with 1.5.3 and before. Still broken in
master
branch.Other information (e.g. stacktraces, related issues, suggestions how to fix)
function filterFromRegistry(list, matchContainer, matchCallback) takes three parameters, but is called with two only in callbackRegistry[eventType] = filterFromRegistry(callbackRegistry[eventType], container); causing
TypeError
list.filter is not a function
The text was updated successfully, but these errors were encountered: