FLUID-4788: Lifecycle functions of the grade component do not fire for the component that uses that grade.

Metadata

Source
FLUID-4788
Type
Bug
Priority
Critical
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
y z
Created
2012-09-05T00:59:17.320-0400
Updated
2014-03-03T12:41:39.262-0500
Versions
  1. 1.4
Fixed Versions
  1. 1.5
Component
  1. Framework

Description

Looks like when we create a non-default grade that has its own lifecycle functions and then use this grade in other components these lifecycle functions do not get activated.

Environments

All

Comments

  • y z commented 2012-09-05T01:04:13.747-0400

    For example we have a component:

    fluid.defaults("some.component", {
        gradeNames: ["fluid.littleComponent", "autoInit"]
    });
    some.component.preInit = function (that) {
        // Code here
    };
    

    And then this component is used as a grade like this:

    fluid.defaults("other.component", {
        gradeNames: ["some.component", "autoInit"]
    });
    

    it's pre init function specified above will not fire.

  • y z commented 2012-09-05T10:21:19.246-0400

    Pull request with the test for the issue is here: https://github.com/fluid-project/infusion/pull/240

  • Michelle D'Souza commented 2012-10-09T18:23:23.100-0400

    Merged into project repo at bdc6d5a1baaeaaa68f588714b2aae83303894851