Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
giabao committed Apr 22, 2019
1 parent 6dad987 commit 733405c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
"scripts": {
"postinstall": "echo 'https://github.com/qunitjs/qunit/issues/1389' && patch -i qunit.patch node_modules/qunit/qunit/qunit.js",
"clean": "rimraf dist .rpt2_cache",
"dist-prepare": "node scripts/dist-prepare.js",
"tsc:scripts": "tsc -b scripts/tsconfig.json",
"watch:scripts": "tsc -b scripts/tsconfig.json --watch --pretty",
"dist-prepare": "node scripts/dist-prepare.js",
"tsc:src": "node $NODE_DEBUG_OPTION scripts/tsc.js -b",
"watch:tsc_src": "node scripts/tsc.js -b --watch --pretty",
"rollup:src": "rollup -c scripts/rollup.config.js",
"watch:rollup_src": "FORCE_COLOR=1 rollup -c scripts/rollup.config.js --watch",
"build:src": "npm-run-all tsc:src rollup:src",
"build:test": "rollup -c scripts/rollup.config.test.js",
"watch:test": "FORCE_COLOR=1 rollup -c scripts/rollup.config.test.js --watch",
"build:src": "npm-run-all tsc:src rollup:src",
"build": "run-s tsc:scripts build:src build:test",
"prerelease": "run-s clean build dist-prepare",
"release": "node scripts/publish.js",
Expand Down
2 changes: 1 addition & 1 deletion src/core/internal/domrange/part1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export interface RangeP1Ex extends RangeP1 {
equals(range: AbstractRange): boolean;
isValid(): boolean;
inspect(): string;
select(this: RangyRangeEx, direction?): void;
}
export interface Bookmark {
start: number;
Expand Down Expand Up @@ -661,7 +662,6 @@ export function createDomRangeP1<TBase extends Constructor<RangeP2 & RangeBase>>
}

// in rangy1, this method is implement in wrappedselection.js
// TODO declare in RangeP1Ex
select(this: RangyRangeEx, direction?): void {
getSelection( this.getDocument() ).setSingleRange(this, direction);
}
Expand Down

0 comments on commit 733405c

Please sign in to comment.