material 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "material",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "description": "A lightweight implementation of Material Design Components for the web - ES6",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -44,7 +44,12 @@ export default {
44
44
  },
45
45
 
46
46
  getInfoById (id) {
47
- return clone(this.dataStore[id])
47
+ // console.log('getInfoById', this.dataStore)
48
+ let info = null
49
+
50
+ if (this.dataStore) info = clone(this.dataStore[id])
51
+
52
+ return info
48
53
  },
49
54
 
50
55
  getSelectedInfo () {
@@ -212,20 +212,5 @@ export default {
212
212
  }
213
213
 
214
214
  return route
215
- },
216
-
217
- storeData (list, more) {
218
- console.log('storeData', list.length, more)
219
- if (more !== true) {
220
- this.dataList = []
221
- }
222
-
223
- // console.log('storeData', this.dataStore)
224
- this.dataStore = this.dataStore || {}
225
-
226
- for (let i = 0; i < list.length; i++) {
227
- this.dataList.push(list[i][this.dataId])
228
- this.dataStore[list[i][this.dataId]] = list[i]
229
- }
230
215
  }
231
216
  }
@@ -47,7 +47,7 @@ class VirtualList {
47
47
  fragment.appendChild(item)
48
48
  }
49
49
 
50
- // node.innerHTML = ''
50
+ node.innerHTML = ''
51
51
  node.appendChild(fragment)
52
52
 
53
53
  // Emit 'next' event if applicable.