Merge pull request +6808 from c9/fix/save-test-2

Fix flaky save_test.js
pull/51/merge
Harutyun Amirjanyan 2015-04-07 22:08:36 +04:00
commit 2ffa5ed249
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -97,7 +97,7 @@
"c9.ide.run": "#00719ba8fa",
"c9.ide.run.build": "#915e48b363",
"c9.ide.run.debug.xdebug": "#b91d23f48b",
"c9.ide.save": "#a32a8f4346",
"c9.ide.save": "#b876d87d55",
"c9.ide.terminal.monitor": "#b0b4d03280",
"c9.ide.theme.flat": "#b1d65fa9bb",
"c9.ide.threewaymerge": "#229382aa0b",

Wyświetl plik

@ -99,13 +99,13 @@ define(function(require, module, exports) {
}
function bookmark(index) {
mark = index !== undefined ? index : this.position;
mark = index !== undefined ? index : position;
emit("change");
}
function isAtBookmark(){
return mark !== null && mark == this.position
return mark !== null && mark == position
|| mark === null && position == -1;
}