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

New 'update' event signature #121

Merged
merged 5 commits into from
Nov 19, 2015

Conversation

Indigo744
Copy link
Collaborator

Implements #105

@Indigo744
Copy link
Collaborator Author

To verify the modification, I suggest you to start commit by commit (easier to see the diffs).

if (animDuration > 0) {
elem.mapElem.animate({"opacity":0}, animDuration, "linear", function() {
$self.on("update", function(e, opt) {
if (typeof opt === "object") {
Copy link
Owner

Choose a reason for hiding this comment

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

What do you think about replacing the huge condition if (typeof opt === "object") { ...} by if (typeof opt !== "object") return; in order to decrease the indentation level ?

@Indigo744
Copy link
Collaborator Author

Here we go :-)
Note: the github diff tool is quite bad when changing only indentation...

@neveldo
Copy link
Owner

neveldo commented Nov 19, 2015

Nice, thank you ! I agree with you, the diff tool should provide an option to ignore diffs.

neveldo added a commit that referenced this pull request Nov 19, 2015
@neveldo neveldo merged commit 0339fc9 into neveldo:master Nov 19, 2015
@Indigo744 Indigo744 deleted the patch-new-update-event-signature branch November 20, 2015 09:48
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.

2 participants