From: Aleksander Ɓukasz Date: Tue, 17 Jun 2014 07:55:37 +0000 (+0200) Subject: smartxml: Cache DocumentNode instances in the underlying DOM structure X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/5a57bc3cb22f2cb424186d8a7992d7dc7af68326?hp=5a57bc3cb22f2cb424186d8a7992d7dc7af68326 smartxml: Cache DocumentNode instances in the underlying DOM structure This allows for data persistence in the DocumentNode.object api. And, at last, puts an end to the creation of unnecessary instances. The side effect is that extensions needs to be registered before acquiring references to nodes as they won't be updated with extension behavior after they are created. This probably should be better reflected in the api, maybe by setting extension via document constructor. ---