You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
On a heavy page with many angular's watchers I add just a single marker with ui-gmap-marker directive. After debugging I found the following row is the place where my page freezes for about 2.5 seconds on Chrome and 0.6 seconds on Firefox:
functionMarkerChildModel(scope,model1,keys,gMap,defaults,doClick,gManager,doDrawSelf,trackModel,needRedraw){
...
this.clonedModel=_.clone(this.model,true);// deep clone
...
}
If I remove the last boolean param (non deep cloning) my page is rendered without freezing. Can you explain me why we need deep copy here? In my case everything works as expected if I change it to: