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

Added appendTo and prependTo with tests see #641 #726

Closed
wants to merge 1 commit into from

Conversation

digihaven
Copy link
Contributor

No description provided.

@@ -102,6 +102,26 @@ var uniqueSplice = function(array, spliceIdx, spliceCount, newElems, parent) {
return array.splice.apply(array, spliceArgs);
};

exports.appendTo = function(target) {
if (typeof target === 'string') {
Copy link
Member

Choose a reason for hiding this comment

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

This project uses two-space soft tabs. Could you change the code style here to match?

@jugglinmike
Copy link
Member

Thanks for the patch, @digihaven! Could you add some more tests? Some important ones that come to mind:

  • Invoking with a string of HTML
  • Invoking with a "node" instance
  • Invoking with a selector
  • Invoking with an Array

fb55 added a commit that referenced this pull request Feb 1, 2016
Fix PR #726 adding `appendTo()` and `prependTo()`
@fb55
Copy link
Member

fb55 commented Feb 1, 2016

Fixed with #797

@fb55 fb55 closed this Feb 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants