Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update methods to lodash 4 version #44

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 10 additions & 0 deletions .idea/extension-tao-blueprints.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions views/js/component/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ define([
};
this.config.data.selection = selection;

distributor = distributorComponent($distributorContainer, _.pick(this.config, ['data']))
distributor = distributorComponent($distributorContainer, _.pickBy(this.config, ['data']))
.on('render', function(){
self.enable();

Expand All @@ -116,7 +116,7 @@ define([
* @returns {Object} the values with the selected property and the selection.
*/
getValues : function getValues() {
var values = _.pick(this.config.data, ['selection', 'property']);
var values = _.pickBy(this.config.data, ['selection', 'property']);
if(distributor){
values.selection = distributor.getValues();
}
Expand All @@ -136,7 +136,7 @@ define([
$distributorContainer = $('.distributor-container', $component);
$propertySelectorContainer = $('.property-selector-container', $component);

distributor = distributorComponent($distributorContainer, _.pick(config, 'data'));
distributor = distributorComponent($distributorContainer, _.pickBy(config, 'data'));
selector = propertySelectorComponent($propertySelectorContainer, {
uri: config.data.property.uri,
label: config.data.property.label,
Expand Down
2 changes: 1 addition & 1 deletion views/js/component/editor/propertySelector/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ define([
*/
var buildTree = function buildTree(data){
var nodeToListItem = function nodeToListItem(acc , node){
var item = _.pick(node, ['uri', 'label']);
var item = _.pickBy(node, ['uri', 'label']);
if(node.children && node.children.length){
item.childList = _.reduce(node.children, nodeToListItem, '');
}
Expand Down
Loading