oddz
14 Oct 2011, 12:46 PM
You will need to replace the CSS and JS file but after that if you uncomment the last script block the alert will not occur.
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="lib/touch/sencha-touch-all-debug-w-comments.js" type="text/javascript"></script>
<link href="lib/touch/resources/css/custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
Ext.application({
name: 'test',
launch: function() {
Ext.Viewport.add(Ext.widget('button',{text: 'Hello',handler: function() { alert('tapped'); }}));
}
});
</script>
<!-- uncomment this after to see the bug.. weird -->
<!-- <script>(function() { var back = Ext.widget('button',{text: 'hi'}); })();</script> -->
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="lib/touch/sencha-touch-all-debug-w-comments.js" type="text/javascript"></script>
<link href="lib/touch/resources/css/custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
Ext.application({
name: 'test',
launch: function() {
Ext.Viewport.add(Ext.widget('button',{text: 'Hello',handler: function() { alert('tapped'); }}));
}
});
</script>
<!-- uncomment this after to see the bug.. weird -->
<!-- <script>(function() { var back = Ext.widget('button',{text: 'hi'}); })();</script> -->
</body>
</html>