Skip to content

Commit 9355a50

Browse files
authored
Merge pull request #8 from yama-dev/v0.4.11
V0.4.11
2 parents f5d1b29 + 7a064bc commit 9355a50

File tree

5 files changed

+17
-51
lines changed

5 files changed

+17
-51
lines changed

README.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Get multi data library.
1616

1717
- npm -> [https://www.npmjs.com/package/js-multi-data-module](https://www.npmjs.com/package/js-multi-data-module)
1818

19-
- Standalone(CDN) -> [https://cdn.jsdelivr.net/gh/yama-dev/js-multi-data-module@v0.4.9/dist/js-multi-data-module.js](https://cdn.jsdelivr.net/gh/yama-dev/js-multi-data-module@v0.4.9/dist/js-multi-data-module.js)
19+
- Standalone(CDN) -> [https://cdn.jsdelivr.net/gh/yama-dev/js-multi-data-module@v0.4.11/dist/js-multi-data-module.js](https://cdn.jsdelivr.net/gh/yama-dev/js-multi-data-module@v0.4.11/dist/js-multi-data-module.js)
2020

2121
- Zip -> [yama-dev/js-multi-data-module](https://github.com/yama-dev/js-multi-data-module/releases/latest)
2222

@@ -115,44 +115,6 @@ none
115115

116116
<br><br><br>
117117

118-
___
119-
120-
**For Developer**
121-
122-
## Contribution
123-
124-
1. Fork it ( https://github.com/yama-dev/js-multi-data-module/fork )
125-
2. Create your feature branch (git checkout -b my-new-feature)
126-
3. Commit your changes (git commit -am 'Add some feature')
127-
4. Push to the branch (git push origin my-new-feature)
128-
5. Create new Pull Request
129-
130-
<br>
131-
132-
## Develop
133-
134-
### at Development
135-
136-
Install node modules.
137-
138-
``` bash
139-
$ npm install
140-
```
141-
142-
Run npm script 'develop'
143-
144-
``` bash
145-
$ npm run develop
146-
```
147-
148-
Run npm script 'production'
149-
150-
``` bash
151-
$ npm run production
152-
```
153-
154-
<br>
155-
156118
## Licence
157119

158120
[MIT](https://github.com/yama-dev/js-multi-data-module/blob/master/LICENSE)

dist/js-multi-data-module.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ <h3>Advanced Use</h3>
307307
data_type: this.inputDataType,
308308
order: this.inputOrder,
309309
orderProperty: this.inputOrderProperty,
310-
filter: this.inputFilter,
310+
filter: this.inputFilter == 'true' ? true : false,
311311
fetch_timeout: this.inputFetchTimeout,
312312
data_list: [
313313
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-multi-data-module",
3-
"version": "0.4.9",
3+
"version": "0.4.11",
44
"description": "Get multi data library.",
55
"keywords": [
66
"multi-data",

src/js-multi-data-module.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ export default class MULTI_DATA_MODULE {
9797
let _data = data;
9898

9999
// Select data hierarchy.
100-
dataAry[count].hierarchy.split('.').map((item)=>{
101-
_data = _data[item];
102-
});
100+
if(dataAry[count].hierarchy){
101+
dataAry[count].hierarchy.split('.').map((item)=>{
102+
_data = _data[item];
103+
});
104+
}
103105

104106
// Set function to format data.
105107
if(dataAry[count].customFunction){
@@ -192,9 +194,11 @@ export default class MULTI_DATA_MODULE {
192194
let _data = data;
193195

194196
// Select data hierarchy.
195-
dataAry[count].hierarchy.split('.').map((item)=>{
196-
_data = _data[item];
197-
});
197+
if(dataAry[count].hierarchy){
198+
dataAry[count].hierarchy.split('.').map((item)=>{
199+
_data = _data[item];
200+
});
201+
}
198202

199203
// Set function to format data.
200204
if(dataAry[count].customFunction){

0 commit comments

Comments
 (0)