fix findPrevious/findNext
This commit is contained in:
parent
acdb23c828
commit
256b88fcd0
1 changed files with 1 additions and 5 deletions
|
|
@ -1246,18 +1246,14 @@ var Editor = function(renderer, session) {
|
||||||
|
|
||||||
this.findNext = function(options, animate) {
|
this.findNext = function(options, animate) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
if (typeof options.backwards == "undefined")
|
|
||||||
options.backwards = false;
|
|
||||||
this.$search.set(options);
|
this.$search.set(options);
|
||||||
this.$find(false, animate);
|
this.$find(false, animate);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.findPrevious = function(options, animate) {
|
this.findPrevious = function(options, animate) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
if (typeof options.backwards == "undefined")
|
|
||||||
options.backwards = true;
|
|
||||||
this.$search.set(options);
|
this.$search.set(options);
|
||||||
this.$find(false, animate);
|
this.$find(true, animate);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$find = function(backwards, animate) {
|
this.$find = function(backwards, animate) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue