Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -252,11 +252,11 @@ |
253 | 253 | context.fn = { |
254 | 254 | 'trigger': function( name, event ) { |
255 | 255 | // Event is an optional argument, but from here on out, at least the type field should be dependable |
256 | | - if ( event == undefined ) { |
| 256 | + if ( typeof event == 'undefined' ) { |
257 | 257 | event = { 'type': 'custom' }; |
258 | 258 | } |
259 | 259 | // Ensure there's a place for extra information to live |
260 | | - if ( event.data == undefined ) { |
| 260 | + if ( typeof event.data == 'undefined' ) { |
261 | 261 | event.data = {}; |
262 | 262 | } |
263 | 263 | // Allow filtering to occur |