Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5406

Android: commonjs exports object is undefined in some cases

    Details

      Description

      Sample code:

      // app.js
      var testmodule1 = require('testmodule');
      Ti.API.info('TEST MODULE 1 TEST: ' + testmodule1.someprop); // This will be undefined
       
      // Module
      // This doesn't work
      exports = {
         someprop: 'coolbeans'
      };
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                rblalock Rick Blalock (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-4584
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration