2 ms·
Ok. I found a way using factory: ItemMaker = function(data){ return { $cell: true, $type: "h1", style: "font-size: 100px;", $text: data,
by meekaaku 9y ago
Ok. I found a way using factory:
ItemMaker = function(data){
return {
$cell: true,
$type: "h1",
style: "font-size: 100px;",
$text: data,
}
}
var i1 = ItemMaker('foo');
var i2 = ItemMaker('bar')