KajaSheen
28 Dec 2009, 4:11 AM
Ext version tested:
Ext 3.1 rev 5770-119
Adapter used:
ext
yui
css used:
only default ext-all.css
Browser versions tested against:
IE8
FF3 (firebug 1.4.5 installed)
Safari 4
Operating System:
Win 7
Description:
I have a global function called "dom" (can be a var though too). During the initialization Something tried to attach an eventListener to this function (which obviously does not exist)
Test Case:
Run from examples/window
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Hello World Window Example</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<!-- GC -->
<!-- LIBS -->
<script type="text/javascript" src="../../adapter/ext/ext-base-debug.js"></script>
<!-- ENDLIBS -->
<script type="text/javascript" src="../../ext-all-debug.js"></script>
<script language="javascript" src="hello.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
dom = 123
-->
</script>
<!-- Common Styles for the examples -->
<link rel="stylesheet" type="text/css" href="../shared/examples.css" />
<style type="text/css">
.x-panel-body p {
margin:10px;
font-size:12px;
}
</style>
</head>
<body>
<script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
<h1>Hello World Window</h1>
<p>This example shows how to create a very simple modal Window with "autoTabs" from existing markup.</p>
<input type="button" id="show-btn" value="Hello World" /><br /><br />
<p>Note that the js is not minified so it is readable. See <a href="hello.js">hello.js</a> for the full source code.</p>
<div id="hello-win" class="x-hidden">
<div class="x-window-header">Hello Dialog</div>
<div id="hello-tabs">
<!-- Auto create tab 1 -->
<div class="x-tab" title="Hello World 1">
<p>Hello...</p>
</div>
<!-- Auto create tab 2 -->
<div class="x-tab" title="Hello World 2">
<p>... World!</p>
</div>
</div>
</div>
</body>
</html>
Steps to reproduce the problem:
Click on "Hello World" Button
The result that was expected:
That the window loads
The result that occurs instead:
Firebug: el.addEventListener is not a function
el.addEventListener(eventName, fn, (capture));\next-base-debug.js (Row 1190)
Debugging already done:
Removed the dom var from the code
Checked the type of "el" in the base adapter
Possible fix:
ext-base-debug (1189 - 1191)
} else if(typeof(el) == 'object') {
el.addEventListener(eventName, fn, (capture));
}
Ext 3.1 rev 5770-119
Adapter used:
ext
yui
css used:
only default ext-all.css
Browser versions tested against:
IE8
FF3 (firebug 1.4.5 installed)
Safari 4
Operating System:
Win 7
Description:
I have a global function called "dom" (can be a var though too). During the initialization Something tried to attach an eventListener to this function (which obviously does not exist)
Test Case:
Run from examples/window
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Hello World Window Example</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<!-- GC -->
<!-- LIBS -->
<script type="text/javascript" src="../../adapter/ext/ext-base-debug.js"></script>
<!-- ENDLIBS -->
<script type="text/javascript" src="../../ext-all-debug.js"></script>
<script language="javascript" src="hello.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
dom = 123
-->
</script>
<!-- Common Styles for the examples -->
<link rel="stylesheet" type="text/css" href="../shared/examples.css" />
<style type="text/css">
.x-panel-body p {
margin:10px;
font-size:12px;
}
</style>
</head>
<body>
<script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
<h1>Hello World Window</h1>
<p>This example shows how to create a very simple modal Window with "autoTabs" from existing markup.</p>
<input type="button" id="show-btn" value="Hello World" /><br /><br />
<p>Note that the js is not minified so it is readable. See <a href="hello.js">hello.js</a> for the full source code.</p>
<div id="hello-win" class="x-hidden">
<div class="x-window-header">Hello Dialog</div>
<div id="hello-tabs">
<!-- Auto create tab 1 -->
<div class="x-tab" title="Hello World 1">
<p>Hello...</p>
</div>
<!-- Auto create tab 2 -->
<div class="x-tab" title="Hello World 2">
<p>... World!</p>
</div>
</div>
</div>
</body>
</html>
Steps to reproduce the problem:
Click on "Hello World" Button
The result that was expected:
That the window loads
The result that occurs instead:
Firebug: el.addEventListener is not a function
el.addEventListener(eventName, fn, (capture));\next-base-debug.js (Row 1190)
Debugging already done:
Removed the dom var from the code
Checked the type of "el" in the base adapter
Possible fix:
ext-base-debug (1189 - 1191)
} else if(typeof(el) == 'object') {
el.addEventListener(eventName, fn, (capture));
}