24
24
property var cache: new Object();
26
function getCardComponent(template, components, isCardTool, artShapeStyle) {
26
function getCardComponent(template, components, isCardTool, artShapeStyle, categoryLayout) {
27
27
if (template === undefined || components === undefined)
30
30
var tString = JSON.stringify(template);
31
31
var cString = JSON.stringify(components);
33
33
var component = cache[allString];
34
34
if (component === undefined) {
35
component = CardCreator.createCardComponent(root, template, components, isCardTool, artShapeStyle, allString);
35
component = CardCreator.createCardComponent(root, template, components, isCardTool, artShapeStyle, categoryLayout, allString);
36
36
cache[allString] = component;