mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +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
|
@ -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…
Reference in New Issue
Block a user