Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Add Editor optionChange event #4162

Merged
merged 1 commit into from
Jun 12, 2013
Merged

Add Editor optionChange event #4162

merged 1 commit into from
Jun 12, 2013

Conversation

lkcampbell
Copy link
Contributor

Add Editor optionChange event.

Triggered when an option for the editor is changed. The 2nd arg to the listener is a string containing the editor option that is changing. The 3rd arg, which can be any data type, is the new value for the editor option.

@lkcampbell
Copy link
Contributor Author

Did we want to call these settings "options" or "preferences"? Seems like the current implementation calls the dynamic settings to the Editor "options" and the persisted settings "preferences", so I picked "optionChange". Let me know if the event name is okay or if you want me to change it to "preferenceChange" or "prefsChange".

@dangoor
Copy link
Contributor

dangoor commented Jun 10, 2013

I like the idea of calling them "options" in this case, specifically for the reason you cite. I suspect that when we build up the preferences system a bit, many of CM's options will become available as prefs in Brackets and we may end up deprecating this. But, until then, this solution seems reasonable.

I'll merge this after sprint 26 is tagged.

dangoor added a commit that referenced this pull request Jun 12, 2013
@dangoor dangoor merged commit 772dda9 into adobe:master Jun 12, 2013
@lkcampbell lkcampbell deleted the option-change-event branch June 13, 2013 02:48
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