Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25787] Windows: Instance properties can be called without object instance

GitHub Issuen/a
TypeStory
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 7.1.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeKota Iguchi
Created2018-02-16T23:57:17.000+0000
Updated2018-03-08T03:31:17.000+0000

Description

Some Titanium APIs can be invoked without an object instance existing.
Ti.Media.AudiPlayer.time; // this still calls AudioPlayer::get_time(), it should not and should be 'undefined'
This is a basic design issue in HAL, it basically doesn't distinguish between static property and instance property and there's no way to define "instance only" property - [TIMOB-18681]

Comments

No comments

JSON Source