tweaks for the new release

This commit is contained in:
nightwing 2015-04-03 13:23:52 +04:00
commit 6fad60f546
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,5 @@
2014.11.08 Version 1.1.8
* API Changes

View file

@ -150,9 +150,8 @@ var Editor = function(renderer, session) {
args: commadEvent.args,
scrollTop: this.renderer.scrollTop
};
if (this.curOp.command.name)
if (this.curOp.command.name && this.curOp.command.scrollIntoView !== undefined)
this.$blockScrolling++;
// this.selections.push(this.selection.toJSON());
};
this.endOperation = function(e) {
@ -161,7 +160,7 @@ var Editor = function(renderer, session) {
return this.curOp = null;
this._signal("beforeEndOperation");
var command = this.curOp.command;
if (command.name && this.$blockScrolling)
if (command.name && this.$blockScrolling > 0)
this.$blockScrolling--;
if (command && command.scrollIntoView) {
switch (command.scrollIntoView) {

View file

@ -9,11 +9,16 @@ pause() {
done
}
read -p "enter version number for the build " VERSION_NUM
cd `dirname $0`/..
SOURCE=`pwd`
CUR_VERSION=`node -e 'console.log(require("./package.json").version)'`
git --no-pager log --first-parent --oneline v$CUR_VERSION..master
echo "current version is $CUR_VERSION"
read -p "enter version number for the build " VERSION_NUM
node -e "
var fs = require('fs');
var version = '$VERSION_NUM';