|
Hi all, just a quick one: For the purposes of unit testing cairngorm view
helpers, I create a “mock” view object as such:
view.labelOne = new Label();
view.textBoxOne = new TextBox(); Then assign this as the view object in the view
helper. This usually works fine. However, when using the DateField object
(view.dateOne = new DateField() ), this approach doesn’t seem to work.
The object is initialized, but the selectedDate
property is always undefined. Has anybody else come across this problem? Is
there something particular about the date field that makes creating an instance
of it in action script any different to creating a label / text box? Thanks in advance, Mike
PS: Before you ask, no, my labels are not actually called
“labelOne”, “labelTwo” etc |

