What dose this lines of js code means:
('selectionchange',function(sm, rs) {
if (rs.length) {
var detailPanel = Ext.getCmp('detailPanel');
bookTpl.overwrite(detailPanel.body, rs[0].data);
}
})
this is a part of below link:
http://dev.sencha.com/deploy/ext-4.0.2a/examples/grid/binding-with-classes.js
Update:
I removed these lines and code runs without any diffrenece!
It’s a coding mistake
Thanks all
I’ll go out on a limb and call it an editing mistake. Here’s a little more context:
That is the only mention of
bookTplin the whole file. Someone copied what appears to be an event binding into their paste buffer and accidentally pasted it into this file or they pasted it in on purpose to check the syntax for thebookGridSm.oncall and forgot to clean up after themselves.Look for an errata list for the examples.