bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-07-20 15:31:55 +03:00
parent 277a21d1e5
commit 0641dad600

View File

@ -2821,6 +2821,7 @@ var BaseBrowserPrototype = {
// first result only.
//
// XXX should we be able to get offset values relative to any match?
// XXX BUG: when pattern is a path this returns a view rather than the item....
get: function(pattern, options){
var args = [...arguments]
pattern = args.shift()
@ -2852,9 +2853,8 @@ var BaseBrowserPrototype = {
.reduce(function(r, e){
return r || typeof(e) != typeof('str') }, false)))
&& !('iterateCollapsed' in options)){
options = Object.assign(
Object.create(options),
{iterateCollapsed: true}) }
options.iterateCollapsed = true
}
// sanity checks...
if(offset <= 0){