Use jQuery.noop

This avoids the definition of several empty functions.

Change-Id: Ic6fe5c46e1ed90217c1935dd0a87c6b97a0ad513
This commit is contained in:
Fomafix 2014-10-10 13:49:09 +00:00 committed by Derk-Jan Hartman
parent aefe1def47
commit 86622b63fb

View file

@ -53,18 +53,12 @@
* function is to both classify the scope of changes as 'division' or 'character' and to prevent further * function is to both classify the scope of changes as 'division' or 'character' and to prevent further
* processing of events which did not actually change the content of the iframe. * processing of events which did not actually change the content of the iframe.
*/ */
'keydown': function () { 'keydown': $.noop,
}, 'change': $.noop,
'change': function () { 'delayedChange': $.noop,
}, 'cut': $.noop,
'delayedChange': function () { 'paste': $.noop,
}, 'ready': $.noop,
'cut': function () {
},
'paste': function () {
},
'ready': function () {
},
'codeEditorSubmit': function () { 'codeEditorSubmit': function () {
context.evt.codeEditorSync(); context.evt.codeEditorSync();
var i, var i,