Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Event click no register

$
0
0

I have one imageview with ONE listener on click event. When i click there is no action. Then i output the element and the property "_events":{"click":{}} its empty.

function login(){
    console.log("click");
    Ti.API.info("click");
};
 
$.login_button.addEventListener('click',login);
 
console.log($.login_button);
output: ......"id":"login_button","_events":{"click":{}}}

Android 4.2, Titanium SDK 3.5.0. Moto X


Viewing all articles
Browse latest Browse all 8068

Trending Articles