Skip to content

Commit 1822be9

Browse files
committed
Make dstore compatible view details panels
1 parent de646b7 commit 1822be9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

css/genome.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@import url("../src/dijit/themes/tundra/tundra.css");
44
@import url("../src/dojo/resources/dojo.css");
5+
@import url("../src/dgrid/css/dgrid.css");
56

67
@import url("main.css");
78
@import url("sequence.css");

src/JBrowse/View/DetailsMixin.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ define([
88
'dojo/query',
99
'dojo/dom-construct',
1010
'dojo/dom-class',
11-
'dojo/store/Memory',
12-
'dstore/legacy/StoreAdapter',
11+
'dstore/Memory',
1312
'dgrid/OnDemandGrid',
1413
'dgrid/extensions/DijitRegistry',
1514
'JBrowse/Util'
@@ -22,7 +21,6 @@ define([
2221
domConstruct,
2322
domClass,
2423
MemoryStore,
25-
StoreAdapter,
2624
DGrid,
2725
DGridDijitRegistry,
2826
Util
@@ -231,10 +229,10 @@ return declare( null, {
231229
parent.style.overflow = 'hidden';
232230
parent.style.width = '90%';
233231
var memstore = new MemoryStore({ data: rows })
234-
var adaptedStore = new DstoreAdapter(memstore);
232+
console.log(memstore);
235233
var grid = new Grid({
236234
columns: columns,
237-
store: adaptedStore
235+
collection: memstore
238236
}, parent );
239237

240238
return parent;

0 commit comments

Comments
 (0)