mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-28 00:50:33 +00:00
Use jQuery.noop
This avoids the definition of several empty functions. Change-Id: Ic6fe5c46e1ed90217c1935dd0a87c6b97a0ad513
This commit is contained in:
parent
aefe1def47
commit
86622b63fb
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue