Changeset 43556
- Timestamp:
- 08/06/2018 07:32:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/admin-bar.js
r43517 r43556 304 304 */ 305 305 var addEvent = function( obj, type, fn ) { 306 if ( typeof obj.addEventListener === 'function' ) {306 if ( obj && typeof obj.addEventListener === 'function' ) { 307 307 obj.addEventListener( type, fn, false ); 308 } else if ( typeof obj.attachEvent === 'function' ) {308 } else if ( obj && typeof obj.attachEvent === 'function' ) { 309 309 obj.attachEvent( 'on' + type, function() { 310 310 return fn.call( obj, window.event );
Note: See TracChangeset
for help on using the changeset viewer.