Skip to content

Commit

Permalink
FLUID-4927: Updated settingsPanel grade's refreshView declaration and…
Browse files Browse the repository at this point in the history
… removed a pre init function.
  • Loading branch information
yzen committed Mar 21, 2013
1 parent 689b113 commit fe5d7f1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/webapp/components/uiOptions/js/SettingsPanels.js
Expand Up @@ -27,19 +27,12 @@ var fluid_1_5 = fluid_1_5 || {};
***********************************************/

fluid.registerNamespace("fluid.uiOptions.settingsPanel");

// This function compensates for a framework deficiency that due to lack of gingerness, the "refreshView"
// function synthesized by rendererComponent is not available during listener registration which only
// occurs after component init functions have completed (http://issues.fluidproject.org/browse/FLUID-4334)
fluid.uiOptions.settingsPanel.lateRefreshViewBinder = function (that) {
that.refreshView = function () {
that.renderer.refreshView();
};
};

fluid.defaults("fluid.uiOptions.settingsPanel", {
gradeNames: ["fluid.rendererComponent", "fluid.uiOptions.modelRelay"],
preInitFunction: "fluid.uiOptions.settingsPanel.lateRefreshViewBinder"
invokers: {
refreshView: "{that}.renderer.refreshView"
}
});

fluid.uiOptions.createSliderNode = function (that, path, type, options) {
Expand Down

0 comments on commit fe5d7f1

Please sign in to comment.