Hello Cliff,
to start with thank you for having taken the early initiative of the Dart port of PureMVC, being a long time user and fan of PureMVC, it is a good starting point to me to come on known ground
Running Reverse Text Demo on latest Dart Editor Version 0.1.0.201206291313, Build 9261
Dart SDK version 9258, I had errors. The version of Reverse Text example I'm using was checked out 07.03.2012 17h.
I know you are aware of this (from g+), but I feel this info could help before you fix this:
A:since dart:dom is deprecated
Demo_Dart_Reversetext.dart Line 1:
// DART DOM Library
#import('dart:html');//before #import('dart:dom');
...
B:TextComponent.dart
vars definition (changes of class denominations):
FormElement textForm;
InputElement textInput;
InputElement textOutput;
LabelElement textOutputLabel;
InputElement checkbox;
ButtonElement reverseButton;
components initialization ($dom_ prefix must be added to querySelector method):
TextComponent()
{
// use HTML5 querySelector for DOM retrieval
textForm = document.$dom_querySelector('#textForm');
textInput = textForm.$dom_querySelector('#inputText');
textOutput = textForm.$dom_querySelector('#outputText');
textOutputLabel = textForm.$dom_querySelector('#outputTextLabel');
checkbox = textForm.$dom_querySelector('input[type=checkbox]');
reverseButton = textForm.$dom_querySelector('button[type=submit]');
...
C:every
.addEventListener(
become:
.$dom_addEventListener(
...
D: ProcessTextCommand.dart
while (chars.length > 0) {
buffer.add(chars.removeLast());
}
does not work it sends an exception, since List chars is considered to be fixed size List (which doesn't allow removeLast), if I understand this correctly.
instead I did the following:
var i = chars.length;
while (i > 0) {
buffer.add(chars[i -1]);
i--;
}
chars = null;
Best regards.
Cedric Madelaine aka maddec