is pane.data an array? should this be pane.data.length ?