// collect
_fetch: function(element, ownerName)
{
var t = this,
m = $.tri4m.widget.hook.uuid.cache.__dict,
s = $.tri4m.widget.hook.uuid.cache.__mapping,
_t = {},
_f = function(el, n)
{
_t[n] = {};
s = $.extend(true, s, _t);
$(el).children().each(function(e)
{
var u = $(this), id = $(this).attr('id');
if(!('undefined' !== typeof id
&& 'uuid-' === id.substr(0x00, 0x05)))
{
_f(u, n);
return;
}
var rn = $.tri4m.util.str.uuidFromId(id);
m[rn] = '#' + id;
_t[n][rn] = u;
s = $.extend(true, s, _t);
_f(u, (rn || id));
});
};
this._log('uuid._fetch');
_f(element, ownerName);
},
// wie es gedacht war:
$.extend($.tri4m.widget.hook.app.proto, {
_create : function()
{
this._persist.before.create();
this._log('app._create');
this._superApply(arguments);
this._persist.after.create();
}
});
// im proto:
_create: function()
{
var t = this,
m = $.tri4m.widget.hook.uuid.cache.__dict,
s = $.tri4m.widget.hook.uuid.cache.__mapping,
x = $.tri4m.widget.hook.uuid.cache.__class,
n = this.widgetName,
e = this.element;
...
this._persist.before.create.children();
this._persist.wrap.create.children();
for(var i in s[n])
{
...
this._persist.before.create.child(i, d);
typeof d.data(i) === 'undefined'
? $.tri4m[i](typeof this.options.__defaults[i] === 'undefined' ? {} : this.options.__defaults[i], m[i])
: this._log('already initialized', 0x04, m[i]);
this._persist.after.create.child(i, d);
}
this._persist.wrap.create.children();
this._persist.after.create.children();
},
// im proto penetrations test:
_penetrate: function()
{
var t = this,
m = $.tri4m.widget.hook.uuid.cache.__dict,
s = $.tri4m.widget.hook.uuid.cache.__mapping,
x = $.tri4m.widget.hook.uuid.cache.__class,
n = this.widgetName,
e = this.element;
...
this._persist.before.penetrate.children();
this._persist.wrap.penetrate.children();
for(var i in s[n])
{
...
this._persist.before.penetrate.child(i, d);
...
this._persist.after.penetrate.child(i, d);
}
this._persist.wrap.penetrate.children();
this._persist.after.penetrate.children();
},
Comments