1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-13 01:20:35 +02:00

Feature/eval template (#651)

* Refactored use of eval

* Disable unstable unit test
This commit is contained in:
Tim Voronov
2021-09-07 16:33:30 -04:00
committed by GitHub
parent 5f361e9e1b
commit e4e98830a0
75 changed files with 1935 additions and 1778 deletions

View File

@ -86,14 +86,14 @@ func ScrollInto(ctx context.Context, args ...core.Value) (core.Value, error) {
if doc != nil {
if selector != values.EmptyString {
return values.None, doc.ScrollBySelector(ctx, selector, opts)
return values.True, doc.ScrollBySelector(ctx, selector, opts)
}
return values.None, doc.GetElement().ScrollIntoView(ctx, opts)
return values.True, doc.GetElement().ScrollIntoView(ctx, opts)
}
if el != nil {
return values.None, el.ScrollIntoView(ctx, opts)
return values.True, el.ScrollIntoView(ctx, opts)
}
return values.None, core.TypeError(