ui-layout icon indicating copy to clipboard operation
ui-layout copied to clipboard

fix layout memory leak

Open pabloes opened this issue 8 years ago • 0 comments

I fixed a memory leak in Layout service addLayout method by removing the controller from the layouts array when the directive ui-layout is destroyed.

I also changed the layout id generation from the array length (because we remove items when layout directive destroyed) to a simple increment.

pabloes avatar Jun 13 '17 11:06 pabloes