After some major bug correction, Archetype is in road for a 0.1.1, with some little enhancement :
We needed to move some code from Component.* to Archetype.Component.* . We have added a little "$C" alias to "Archetype.Component" in order to simplify the write of common commands.
We don't like to change the API, but putting a variable "Component" in "window" is in conflict with a browser native object "window.Component" in Firefox 3. So we had to move it to its new location.
In Archetype 0.1.0, when we create the Component, we have putted too much code in common between Components, so they were sharing their "_private" scope, containing all component variables, so 2 instantiations of the same component would share the same variables. Components are often used in a Singleton manner, but this is a major bug, so this has been corrected on the trunk and justify by itself a new release.
Archetype 0.1.1 should be available in a week or two, possibly in the same time as AWiki 0.1.0.... ;)
N.B.: The next Archetype version will be distributed with Prototype Window Class and may have a new logger based on it !
mercredi 28 novembre 2007
[EN]In road to Archetype 0.1.1
Libellés :
API,
Archetype,
Archetype Javascript Framework,
AWiki,
FF3,
firefox,
framework,
javascript
vendredi 9 novembre 2007
Le trunk bientôt compatible avec Firefox 3
Libellés :
Archetype,
Archetype Javascript Framework,
bug,
Components,
FF3,
Firebug,
Firefox 3,
Gran Paradiso,
javascript,
Minefield
Après avoir soupçonné bien des choses pour comprendre pourquoi Archetype ne fonctionnait pas correctement dans Firefox 3, un bon gros débogage de Swiip (sans Firebug, qui n'est pas encore dispo sur FF3 :( ... d'où galère) a trouvé le problème:
L'objet "Components" existe dans Firefox 3, indépendemment d'Archetype.
Aussi Firefox n'appéciait pas particulièrement que l'on change cet objet en mettant le notre. La solution a donc été de transformer les "Components" en "Archetype.Components". C'est un peu gênant pour la compatibilité avec l'existant mais bon :/
A voir si on garde cette forme, vu que ça alourdit les écritures... En tout cas on a trouvé la raison (merci Swiip ! ) c'est déjà le plus important.
Reste à comprendre les problèmes avec :
L'objet "Components" existe dans Firefox 3, indépendemment d'Archetype.
Aussi Firefox n'appéciait pas particulièrement que l'on change cet objet en mettant le notre. La solution a donc été de transformer les "Components" en "Archetype.Components". C'est un peu gênant pour la compatibilité avec l'existant mais bon :/
A voir si on garde cette forme, vu que ça alourdit les écritures... En tout cas on a trouvé la raison (merci Swiip ! ) c'est déjà le plus important.
Reste à comprendre les problèmes avec :
- Safari 3 Mac (vu que sous win ça marche)
- Konqueror
Inscription à :
Messages (Atom)