Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(runHandlers): check if handler returned is not undefined #2074

Closed
wants to merge 2 commits into from

Conversation

xtv
Copy link
Contributor

@xtv xtv commented Mar 29, 2015

runHandlers performs a for in loop to retrieve all properties, but does not check
it HANDLERS contains a handler with that key - which breaks if user code extends
Object.

fixes #2072

xtv added 2 commits March 29, 2015 18:50
    runHandlers performs a for in loop to retrieve all properties, but does not check
    it HANDLERS contains a handler with that key - which breaks if user code extends
    Object.

   fixes angular#2072
@xtv
Copy link
Contributor Author

xtv commented Mar 29, 2015

travis checks failed due to github issues:

fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out

But I dont figure how to trigger retry

@ThomasBurleson ThomasBurleson modified the milestone: 0.9.0 Mar 31, 2015
@ThomasBurleson ThomasBurleson self-assigned this Apr 1, 2015
@xtv xtv deleted the fix-run-handlers-branch branch April 1, 2015 16:41
JulianWielga pushed a commit to JulianWielga/material that referenced this pull request Apr 1, 2015
Also resolve ::runHandlers RTE when Object.prototypes are extended.
Closes angular#2074. Closes angular#2072. Closes angular#1791
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gesture.js: runHandler breaks with TypeErrors if custom code extends Object
2 participants