Ext.dom.Element.setCls() function is not working. It throws the error map is undefined.



Code:



Ext.application({
name : 'Fiddle',


launch : function() {
Ext.create('Ext.Component',
{
html: 'Test Code'
,renderTo: Ext.getBody()
,id: 'testId'
});

var node = Ext.get(testId);
console.log(node);
node.setCls('testCls');
}
});