* Build a keydown event with the given key code and extra options. * * @param {Number} keyCode the keyboard code to be used for the 'which' * attribute of the keydown event. * @param {Object} eventProps extra properties to build the keydown event. * * @retur
(keyCode, eventProps)
| 13 | * @return {jQuery.Event} a 'keydown' type event. |
| 14 | */ |
| 15 | function buildKeyDownEvent (keyCode, eventProps) { |
| 16 | return $.Event('keydown', $.extend({}, { which: keyCode }, eventProps)); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Wrapper function providing a select2 element with a given enabled/disabled |
no outgoing calls
no test coverage detected
searching dependent graphs…