We're updating the issue view to help you get more done. 

VerticalDelegate controlsPerPage executes sizeProp function in wrong scope

Description

enyo.DataList.delegates.vertical contains the following line of code:
perPage = list.controlsPerPage = Math.ceil(((fn(list) * multi) / childSize) + 1);

Note the fn variable, it references the width or height methods on the delegate, but it gets executed globally. However, the methods it references seem designed to be executed within the delegate's scope.

Environment

Any

Status

Assignee

Ruben Vreeken

Reporter

Ruben Vreeken

Labels

None

External issue ID

None

Tango Test Run Elements

None

Old Issue Key

None

Components

Affects versions

2.5.0
2.4.0

Priority

None