Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-9085] 'this' object should be event firer, not source, for callbacks #2593

Merged
merged 2 commits into from Jul 19, 2012
Merged

[TIMOB-9085] 'this' object should be event firer, not source, for callbacks #2593

merged 2 commits into from Jul 19, 2012

Conversation

sptramer
Copy link
Contributor

Note that although this brings parity with Android and Mobile Web, it violates the specification. The callback function's this should refer to the function itself.

TICKET

if (sourceObject == nil)
KrollObject* eventKrollObject = [self krollObjectForProxy:proxy];
KrollObject* sourceObject = [self krollObjectForProxy:source];
KrollObject* thisObject = [self krollObjectForProxy:proxy];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

effectively, thisObject == eventKrollObject

@mstepanov
Copy link
Contributor

Code reviewed. APPROVED

@mstepanov
Copy link
Contributor

FT PASSED

mstepanov pushed a commit that referenced this pull request Jul 19, 2012
[TIMOB-9085] 'this' object should be event firer, not source, for callbacks
@mstepanov mstepanov merged commit 6d95a75 into tidev:master Jul 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants