+ });
+ } else if(_.isObject(arg)) {
+ _.keys(arg).forEach(function(key) {
+ var value = arg[key],
+ path;
+ if(value && value.nodeType) {
+ path = value.getPath();
+ Object.defineProperty(arg, key, {
+ get: function() {
+ if(transformation.hasRun && path) {
+ return transformation.document.getNodeByPath(path);
+ } else {
+ return value;
+ }
+ }
+ });
+ }
+ });
+ }