-
24 Mar 2011 6:04 AM #1
[FIXED-EXTJSIV-300] Ext.getDom - unreachable code
[FIXED-EXTJSIV-300] Ext.getDom - unreachable code
The if-statement below is not reachable. This looks like a defect?
Code:if (el == e.getAttribute('id')) { return e; } else { return null; }Code:getDom : function(el, strict) { if (!el || !document) { return null; } if (el.dom) { return el.dom; } else { if (typeof el == 'string') { var e = document.getElementById(el); // IE returns elements with the 'name' and 'id' attribute. // we do a strict check to return the element with only the id attribute if (e && strict) { return; if (el == e.getAttribute('id')) { return e; } else { return null; } } return e; } else { return el; } } }
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-EXTJSIV-198] DirectSubmit not sending data
By mitchellsimoens in forum Ext:BugsReplies: 3Last Post: 16 Feb 2012, 6:16 AM -
[FIXED-EXTJSIV-201] ServerProxt exception event
By westy in forum Ext:BugsReplies: 3Last Post: 31 Mar 2011, 2:15 AM -
[PR5][FIXED-EXTJSIV-189] ComboBox Selection Issue
By PV-Patrick in forum Ext:BugsReplies: 8Last Post: 22 Mar 2011, 5:26 PM -
[FIXED-EXTJSIV-191] Component.js typos
By LesJ in forum Ext:BugsReplies: 1Last Post: 21 Mar 2011, 3:12 PM -
[FIXED-EXTJSIV-215] Error on LocaStorageProxy clear
By elwhiz in forum Ext:BugsReplies: 0Last Post: 21 Mar 2011, 1:00 PM


Reply With Quote