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

Bugfix: $messageCenterService.options are overwritten #40

Merged
merged 1 commit into from
Sep 27, 2016

Conversation

EgertV
Copy link
Contributor

@EgertV EgertV commented Sep 27, 2016

If messageCenterService.add is called then $messageCenterService.options can be overwritten. Angular extend copies properties from source to destination. This can be prevented by passing an empty object as the target.

https://docs.angularjs.org/api/ng/function/angular.extend

@e0ipso e0ipso merged commit 3ce8157 into e0ipso:master Sep 27, 2016
@e0ipso
Copy link
Owner

e0ipso commented Sep 27, 2016

Thanks for the contribution!

@EgertV EgertV deleted the development branch September 28, 2016 08:49
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.

2 participants