Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 1 addition & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Get multi data library.

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

- 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)
- 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)

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

Expand Down Expand Up @@ -115,44 +115,6 @@ none

<br><br><br>

___

**For Developer**

## Contribution

1. Fork it ( https://github.com/yama-dev/js-multi-data-module/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

<br>

## Develop

### at Development

Install node modules.

``` bash
$ npm install
```

Run npm script 'develop'

``` bash
$ npm run develop
```

Run npm script 'production'

``` bash
$ npm run production
```

<br>

## Licence

[MIT](https://github.com/yama-dev/js-multi-data-module/blob/master/LICENSE)
Expand Down
8 changes: 4 additions & 4 deletions dist/js-multi-data-module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ <h3>Advanced Use</h3>
data_type: this.inputDataType,
order: this.inputOrder,
orderProperty: this.inputOrderProperty,
filter: this.inputFilter,
filter: this.inputFilter == 'true' ? true : false,
fetch_timeout: this.inputFetchTimeout,
data_list: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-multi-data-module",
"version": "0.4.9",
"version": "0.4.11",
"description": "Get multi data library.",
"keywords": [
"multi-data",
Expand Down
16 changes: 10 additions & 6 deletions src/js-multi-data-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ export default class MULTI_DATA_MODULE {
let _data = data;

// Select data hierarchy.
dataAry[count].hierarchy.split('.').map((item)=>{
_data = _data[item];
});
if(dataAry[count].hierarchy){
dataAry[count].hierarchy.split('.').map((item)=>{
_data = _data[item];
});
}

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

// Select data hierarchy.
dataAry[count].hierarchy.split('.').map((item)=>{
_data = _data[item];
});
if(dataAry[count].hierarchy){
dataAry[count].hierarchy.split('.').map((item)=>{
_data = _data[item];
});
}

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