Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-9164

CMD-clicking event listener in Alloy doesn't prefer attached controller

    Details

    • Type: Improvement
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Appc Studio 4.7.0.201607250649
      OSX

      Description

      When you have multiple controllers containing the same function cmd-clicking on the function doesn't go to the correct controller sometimes.

      Example View:

      <Require src="components/textArea" id="open_text" onChange="changeValue" onBlur="blur" onFocus="focus" />
      

      The function changeValue exists in the controller which is attached to the view (so they share the same name). The function changeValue also exists in a couple other controllers. So when cmd-clicking on the changeValue function in the view it doesn't give me a choice where to go to, but goes to the first changeValue function it can find, which is not always in the correct controller.

      Expected behaviour would be it would go to the correct controller

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              topener Rene Pot
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: