26 lines
314 B
JavaScript
26 lines
314 B
JavaScript
/**
|
|
* A holder for another object.
|
|
**/
|
|
Sql.Holder = new Class
|
|
({
|
|
Extends: Sql.Object
|
|
,Properties:
|
|
{
|
|
id:
|
|
{
|
|
type: String
|
|
,value: null
|
|
}
|
|
}
|
|
|
|
,render: function (batch)
|
|
{
|
|
var object;
|
|
|
|
if (batch && (object = batch.get (this.id)))
|
|
return object.render (batch);
|
|
|
|
return '#'+ this.id;
|
|
}
|
|
});
|