Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

feat(sortable): add support for the case that debugInfo is disabled #314

Merged
merged 6 commits into from
Jan 20, 2015

Conversation

thgreasi
Copy link
Contributor

@thgreasi thgreasi commented Jan 9, 2015

When finished resolve #291.

var droptargetScope = null;
angular.forEach(ui.item.sortable._connectedSortables, function(x) {
if (x.element[0] === droptarget[0]) {
droptargetScope = x.scope;
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to not return after finding the droptargetScope? It seems like it'd be useful, performance-wise, to bail early, but I may be missing something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was written at 7:30 am before I leave for work and obviously I was lazy enough to write a for loop...
I'm going to change it to use a for before merging and possibly refractor it to a getDroptargetScope function.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 3f72c2f on thgreasi:debugInfoEnabled into 11a3fd2 on angular-ui:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.84%) when pulling c4eae05 on thgreasi:debugInfoEnabled into a723311 on angular-ui:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.84%) when pulling 0a0d216 on thgreasi:debugInfoEnabled into a723311 on angular-ui:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 0ad3250 on thgreasi:debugInfoEnabled into a723311 on angular-ui:master.

@thgreasi thgreasi modified the milestones: v0.13.2, v0.13.3 Jan 15, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b6734fe on thgreasi:debugInfoEnabled into 7d8b77e on angular-ui:master.

thgreasi added a commit that referenced this pull request Jan 20, 2015
feat(sortable): add support for the case that debugInfo is disabled
@thgreasi thgreasi merged commit cf82c0b into angular-ui:master Jan 20, 2015
@thgreasi thgreasi deleted the debugInfoEnabled branch January 23, 2015 05:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI-Sortable is Dependent on DebugInfo Being Enabled
3 participants