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

Support for IE11, Edge and Firefox #11

Merged
merged 3 commits into from
Oct 21, 2016

Conversation

kkwiatkowski
Copy link
Collaborator

This pull request introduce support for mentioned browsers.
It addresses issue #6 and probably #10 (this one should be checked).

If merged, please update on npm as well.

@kkwiatkowski
Copy link
Collaborator Author

@CezaryDanielNowak any update on this PR?

@CezaryDanielNowak
Copy link
Owner

@kkwiatkowski is this update containing some changes from Clamp.js forks? If so, please update comment at the top.
PR is OK

@@ -31,6 +36,9 @@ Dotdotdot.prototype.dotdotdot = function(container) {
});
}
};
Dotdotdot.prototype.update = function() {

Choose a reason for hiding this comment

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

Is this helper method needed? Maybe line 12 could be just this.update = this.forceUpdate.bind(this);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not needed. It was added only for sake of clean code.
I'll update this in few secs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've checked docs for forceUpdate and it is safer to leave it as it is.
Force update is expecting a callback as its first param, and doing it as you proposed will pass there an event. It might lead to unexpected behavior and should be avoided I guess.

@kkwiatkowski
Copy link
Collaborator Author

@CezaryDanielNowak nop, this update doesn't contain any changes from Clamp.js forks.

@CezaryDanielNowak CezaryDanielNowak merged commit bb9888d into CezaryDanielNowak:master Oct 21, 2016
@kkwiatkowski
Copy link
Collaborator Author

@CezaryDanielNowak Thanks for merge! I'm waiting for new release and npm update then :).

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