Index: src/js/_enqueues/lib/admin-bar.js
===================================================================
--- src/js/_enqueues/lib/admin-bar.js	(revision 43386)
+++ src/js/_enqueues/lib/admin-bar.js	(working copy)
@@ -303,10 +303,13 @@
 		 * @return {void}
 		 */
 		var addEvent = function( obj, type, fn ) {
-			if ( obj.addEventListener )
-				obj.addEventListener(type, fn, false);
-			else if ( obj.attachEvent )
-				obj.attachEvent('on' + type, function() { return fn.call(obj, window.event);});
+			if ( typeof obj.addEventListener === 'function' ) {
+				obj.addEventListener( type, fn, false );
+			} else if ( typeof obj.attachEvent === 'function' ) {
+				obj.attachEvent( 'on' + type, function() {
+					return fn.call( obj, window.event );
+				} );
+			}
 		},
 
 		aB, hc = new RegExp('\\bhover\\b', 'g'), q = [],
