Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-922

Alloy: Previously working code crashes with Alloy 1.3.0 + Titanium SDK 3.2.0

    Details

      Description

      I looked in the release notes and didn't see anything that should cause this crash

      This Alloy XML

      <Alloy>
      	<Window id="settingsWin" title="Settings" class="container" tabBarHidden="true">
              <ListView id="listView" defaultItemTemplate="template" allowsSelection="false">
                  <Templates>
                      <ItemTemplate id="inputTemplate" name="inputTemplate">
                      	<TextField bindId="textfield" id="tf_username" onChange="TFUpdate" autocorrect="false" keyboardType="TI.Ui.KEYBOARD_EMAIL" hintText="User name / e-mail address"></TextField>
                      </ItemTemplate>
                  </Templates>
       
                  <ListSection headerTitle="Login Id" id="idSection">
                      <ListItem template="inputTemplate" textfield:value=""/>
                  </ListSection>
              </ListView>
      	</Window>
      </Alloy>
      

      Generates JS code that crashes on

          TFUpdate ? $.__views.tf_username.addEventListener("change", TFUpdate) : __defers["$.__views.tf_username!change!TFUpdate"] = true;
      

      because $.__views.tf_username is undefined

      This used to work and now it crashes

      I don't believe that the definition of TFUpdate in the .js file is a factor. An empty definition should do.

          function TFUpdate(e) {
          }
      

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              dspells Henry David Spells III
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration