Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6124

Diagnostic when registering faulty modelRelay record is unhelpful

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data Binder
    • Labels:
      None

      Description

      When a modelRelay record refers to a nonexistent function or has misnamed members, the triggered diagnostic is unhelpful. When given the following record:

          modelRelay: {
              target: "keyedInUser.label",
              singleTransform: {
                  type: "free",
                  funcName: "gpii.app.menu.createNameLabel",
                  args: ["{app}.keyedInUserToken", "{that}.options.menuLabels.keyedIn", "{that}.options.menuLabels.notKeyedIn"]
              }
      

      the framework produces a bare diagnostic

      "TypeError: Cannot read property 'listenerId' of undefined"
      

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: