Пример #1
0
 this.wrapRemove = function(editor, __remove, dir) {
    if (!this.cursorInRLanguageMode())
       return __remove.call(editor, dir);
    else
       return TextMode.prototype.wrapRemove(editor, __remove, dir);
 };
Пример #2
0
 this.wrapInsert = function(session, __insert, position, text) {
    if (!this.cursorInRLanguageMode())
       return __insert.call(session, position, text);
    else
       return TextMode.prototype.wrapInsert(session, __insert, position, text);
 };