mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fix JS test.
* `new Array` doesn't seem to be available in phantomJS yet.
This commit is contained in:
parent
5b965ab5d0
commit
3e9c3f6f13
1 changed files with 2 additions and 1 deletions
|
@ -214,7 +214,8 @@ export default Ember.Component.extend({
|
|||
const previewOffsetTop = $preview.offset().top;
|
||||
const offset = $preview.scrollTop() - previewOffsetTop - ($input.offset().top - previewOffsetTop);
|
||||
const nonEmptyList = [];
|
||||
const scrollMap = Array(numberOfLines).fill(-1);
|
||||
const scrollMap = [];
|
||||
for (let i = 0; i < numberOfLines; i++) { scrollMap.push(-1); };
|
||||
|
||||
nonEmptyList.push(0);
|
||||
scrollMap[0] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue