[#515, #524] nodrop, clone, and dirty-checking fixes#525
Conversation
ppuleo
commented
Jul 27, 2015
- Use angular.copy when cloning nodes
- Simplify nodrop, clone, and isDirty checking in $uiTreeHelper dragInfo
- Update $uiTreeHelper dragInfo.apply to allow null parent.$nodeScope for single-level trees
|
Hmm, looks like the tests are starting in the middle of the build. I think runSequence might be a better than gulp.start for the build task. |
|
Thanks for this, @ppuleo! CircleCI isn't well configured so don't mind the failing build. As long as Travis succeeds. Can you elaborate your improvements, please? Do you need these for a project you're working on? |
|
Thanks for reviewing @Voles! And thanks for maintaining this project. This PR addresses two issues:
I'm using angular-ui-tree in a project now so I'll try to contribute fixes for any bugs I find. So far, it generally works well. |
|
@ppuleo thanks for your detailed explanation! I've tested your changes, LGTM! If you resolve these conflicts I'll merge your changes! Sorry for the inconvenience... |
|
@Voles Sure, no problem. I should probably add an example as well. I'll update and comment again when this is ready to review. |
|
@ppuleo great! Feel free to add the examples as a separate PR. Maybe I can help you with this as well. |
|
I'd like to suggest to update the current connected-trees example page. By adding some information about cloning the node and using input-fields for the node name, things should be clear enough. WDYT? Example page: http://angular-ui-tree.github.io/angular-ui-tree/#/connected-trees |
ce43796 to
7d2d351
Compare
…hecking fixes - Use angular.copy when cloning nodes - Simplify nodrop, clone, and isDirty checking in $uiTreeHelper dragInfo - Update $uiTreeHelper dragInfo.apply to allow null parent.$nodeScope for single-level trees
- Add an example for data-nodrop-enabled on the ui-tree and on an individual node - Add an example for cloning
7d2d351 to
4da9833
Compare
|
@Voles ok, I've added examples for |
|
+1 |
|
Merged. Thanks very much, @ppuleo! The examples are very useful for other developers! |