Bryntum Quiz 11

by shweta naik

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<link rel="stylesheet" href="http://cdn.sencha.io/ext-4.2.0-gpl/resources/css/ext-all.css">
<script src="http://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js"></script>

JavaScript

/*
11. One of our clients reports an exception using our Scheduler component (which supports both TreeStore and the normal flat Store) in his application. He points to this line in our source code, what could be the issue? Assume that “this” reference contains a correct reference to a Scheduler with the flat store.

var isTree = this.store instanceof Ext.data.TreeStore;

*/
//delete(Ext.data.TreeStore);
this.store = Ext.create('Ext.data.TreeStore');
this.store = Ext.create('Ext.data.Store', {
    fields: [{name: 'name'}]
});

console.log(this.store instanceof Ext.data.TreeStore);