Skip to content

Commit

Permalink
Merge branch 'issue-16'
Browse files Browse the repository at this point in the history
* issue-16:
  fix!: Remove udpateSettings method.
  • Loading branch information
amb26 committed Jun 10, 2020
2 parents 86d4551 + 03296de commit 83bce7f
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/js/background/chromeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/* eslint-env node */
/* global fluid, uioPlus */
/* global fluid */

"use strict";

Expand All @@ -36,14 +36,6 @@ fluid.defaults("uioPlus.chrome.settings", {
model: {
settings: "{settings}.options.defaultSettings"
},
invokers: {
// A dedicated invoker instead of declaratively setting up the model change is required to provide a default
// value for the `settings` to set. This is useful for resetting the preferences.
updateSettings: {
funcName: "uioPlus.chrome.settings.updateSettings",
args: ["{that}", "{arguments}.0"]
}
},
components: {
domSettingsApplier: {
type: "uioPlus.chrome.domSettingsApplier",
Expand All @@ -68,8 +60,9 @@ fluid.defaults("uioPlus.chrome.settings", {
reset: {
target: "{that reset}.options.invokers.click",
record: {
func: "{settings}.updateSettings",
args: ["{settings}.options.defaultSettings"]
changePath: "{settings}.model.settings",
value: "{settings}.options.defaultSettings",
source: "reset"
}
}
}
Expand All @@ -78,10 +71,6 @@ fluid.defaults("uioPlus.chrome.settings", {
}
});

uioPlus.chrome.settings.updateSettings = function (that, settings) {
that.applier.change("settings", settings || that.options.defaultSettings);
};

fluid.defaults("uioPlus.chrome.settingsContextPanel", {
gradeNames: ["uioPlus.chrome.contextMenuPanel"],
strings: {
Expand Down

0 comments on commit 83bce7f

Please sign in to comment.