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

Windows: Ti.App.Properties.get* should all be able to return null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Release 6.1.1, Release 6.2.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.2.0.v20170623140932
      Appc CLI: 6.2.2
      Appc NPM: 4.2.9
      Nokia Lumia 550
      Windows 10 Mobile emulator 10.0.14393
      Windows 10 Pro 10.0.15063

    • Story Points:
      3
    • Sprint:
      2017 Sprint 17 SDK

      Description

      Description

      Following on from TIMOB-24838, all Ti.App.Properties.get* functions should be able to return null,

      console.log(JSON.stringify(Ti.App.Properties.getList('UserList', null)));
      console.log(JSON.stringify(Ti.App.Properties.getObject('UserObj', null)));
      console.log(JSON.stringify(Ti.App.Properties.getString('UserObj', null)));
      console.log(JSON.stringify(Ti.App.Properties.getBool('UserObj', null)));
      console.log(JSON.stringify(Ti.App.Properties.getInt('UserObj', null)));
      console.log(JSON.stringify(Ti.App.Properties.getDouble('UserObj', null)));
      

      Android and iOS

      [INFO]  null
      [INFO]  null
      [INFO]  null
      [INFO]  null
      [INFO]  null
      [INFO]  null
      

      Windows

      [INFO]  null
      [INFO]  null
      [INFO]  null
      [INFO]  false
      [INFO]  0
      [INFO]  0
      

      Steps to reproduce
      1. Add the above code to an existing app.js and build for Windows
      Actual

      Output is as shown under the Windows header above

      Expected

      Output should match Android and iOS

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Ewan Harris
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code