fix findPrevious/findNext

This commit is contained in:
nightwing 2012-04-24 15:05:08 +04:00
commit 256b88fcd0

View file

@ -1246,18 +1246,14 @@ var Editor = function(renderer, session) {
this.findNext = function(options, animate) {
options = options || {};
if (typeof options.backwards == "undefined")
options.backwards = false;
this.$search.set(options);
this.$find(false, animate);
};
this.findPrevious = function(options, animate) {
options = options || {};
if (typeof options.backwards == "undefined")
options.backwards = true;
this.$search.set(options);
this.$find(false, animate);
this.$find(true, animate);
};
this.$find = function(backwards, animate) {