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 16180 3: Add snapshot support #32

Merged
merged 6 commits into from Jan 24, 2014

Conversation

hieupham007
Copy link
Contributor

Run example/3d.js, click on snapshot button.

KrollDict data = new KrollDict();
data.put("snapshot", sblob);
data.put("source", proxy);
proxy.fireEvent("onsnapshotready", data);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to use a constant instead of "onsnapshotready".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its only used once, no need for constant

Copy link
Contributor

Choose a reason for hiding this comment

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

But it will make the search easier if someone wants to know where the event is fired.

@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested. Looks good except one minor comment.

jonalter added a commit that referenced this pull request Jan 24, 2014
Timob 16180 3: Add snapshot support
@jonalter jonalter merged commit b0447e3 into tidev:master Jan 24, 2014
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

3 participants