Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feat(jqLite): implement the detach method #5461

Closed
wants to merge 1 commit into from
Closed

feat(jqLite): implement the detach method #5461

wants to merge 1 commit into from

Conversation

jbruni
Copy link
Contributor

@jbruni jbruni commented Dec 18, 2013

@ghost ghost assigned tbosch Dec 19, 2013
@smashercosmo
Copy link

any chance this will be merged?

if (parent) parent.removeChild(element);
remove: jqLiteRemove,

detach: function(element) {
Copy link
Contributor

Choose a reason for hiding this comment

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

don't you want to support the keepData parameter here?

Copy link
Member

Choose a reason for hiding this comment

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

This parameter is internal. jQuery accepts an optional selector argument so jqLite shouldn't use it for sth else.

This is OK for me.

@mgol
Copy link
Member

mgol commented Aug 1, 2014

LGTM.

@mgol mgol self-assigned this Aug 1, 2014
@mgol mgol modified the milestones: Backlog, 1.3.0, 1.3.0-beta.18 Aug 1, 2014
@caitp
Copy link
Contributor

caitp commented Aug 8, 2014

@mzgol do we need this to help with the jQuery 2 support?

Please reply quickly otherwise this will be pushed back

@caitp caitp modified the milestones: 1.3.0-beta.18, 1.3.0-beta.19 Aug 8, 2014
@mgol
Copy link
Member

mgol commented Aug 8, 2014

@mzgol do we need this to help with the jQuery 2 support?

We don't need it for anything jQuery-related. It's just a common method to move elements in the DOM without destroying their data so if Angular UI needs it, I'd merge it. The patch is small.

@mgol
Copy link
Member

mgol commented Aug 14, 2014

Landed, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants