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

Remove a function

$
0
0

Hi. I have a function that uses singletap to do stuff.

The view is both a pic and some text but sometimes it wont be a pic so in that case i dont want the text to be able to singletap to change props. Make sense..?

Anyhow here is my code

scview.addEventListener('singletap', function() {
                if(descriptionview.height === '100dp') {
                    descriptionview.applyProperties({height: '0dp'});   
                } else{
                    descriptionview.applyProperties({height: '100dp'}); 
                 }
                });
 
if(win.object === null){
ta1.applyProperties({height : '300dp'});  
}
So when win.object is null i dont want the singletap to work.

How do i set that?

Thanx


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>