lylepratt
13 Nov 2011, 11:28 AM
REQUIRED INFORMATION
Sencha Touch version tested:
Sencha 2 rev PR2
Browser versions tested against:
Safari
Chrome
Mobile Safari
DOCTYPE tested against:
HTML5
Description:
Describe the problem in greater detail here, summarizing the behavior.
If you define a list with the "emptyText" attribute set, things break and this error is produced:
TypeError: 'undefined' is not an object (evaluating 'innerItem.innerHTML = this.getItemTpl().apply(data)')
Using setEmptyText on initialization seems to work the FIRST TIME, but if you change it again, the same error appears.
Steps to reproduce the problem:
Create a list
Define the 'emptyText' attribute
load the list and watch it break
The result that was expected:
no errors should appear
subsequent alterations of the empty text should work as expected
The result that occurs instead:
defining the list with 'emptyText' breaks the list. Subsequently changing the 'emptyText' with 'setEmptyText' also breaks the list.
Test Case:
{
xtype: 'list',
id: 'testList',
cls: 'test_list_container',
store: 'TestStore',
emptyText: 'Test Empty Text' // this breaks it
}
Sencha Touch version tested:
Sencha 2 rev PR2
Browser versions tested against:
Safari
Chrome
Mobile Safari
DOCTYPE tested against:
HTML5
Description:
Describe the problem in greater detail here, summarizing the behavior.
If you define a list with the "emptyText" attribute set, things break and this error is produced:
TypeError: 'undefined' is not an object (evaluating 'innerItem.innerHTML = this.getItemTpl().apply(data)')
Using setEmptyText on initialization seems to work the FIRST TIME, but if you change it again, the same error appears.
Steps to reproduce the problem:
Create a list
Define the 'emptyText' attribute
load the list and watch it break
The result that was expected:
no errors should appear
subsequent alterations of the empty text should work as expected
The result that occurs instead:
defining the list with 'emptyText' breaks the list. Subsequently changing the 'emptyText' with 'setEmptyText' also breaks the list.
Test Case:
{
xtype: 'list',
id: 'testList',
cls: 'test_list_container',
store: 'TestStore',
emptyText: 'Test Empty Text' // this breaks it
}