Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisurgi committed May 22, 2024
1 parent 0cf1f6c commit 9bb5c99
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 72 deletions.
40 changes: 14 additions & 26 deletions dist/jedi.js

Large diffs are not rendered by default.

40 changes: 14 additions & 26 deletions docs/js/jedi.js

Large diffs are not rendered by default.

14 changes: 1 addition & 13 deletions src/instances/multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import {
different,
notSet,
clone,
isObject,
overwriteExistingProperties, mergeDeep
mergeDeep
} from '../helpers/utils.js'
import Jedi from '../jedi.js'
import {
getSchemaAnyOf,
getSchemaOneOf,
Expand Down Expand Up @@ -161,16 +159,6 @@ class InstanceMultiple extends Instance {
}
}

// reassignValues () {
// const lastInstanceValue = this.instances[this.lastIndex].getValue()
// const currentInstanceValue = this.activeInstance.getValue()
//
// if (isObject(lastInstanceValue) && isObject(currentInstanceValue)) {
// const mergedValue = overwriteExistingProperties(currentInstanceValue, lastInstanceValue)
// this.activeInstance.setValue(mergedValue, false)
// }
// }

/**
* Returns the index of the instance that has less validation errors
*/
Expand Down
14 changes: 7 additions & 7 deletions src/themes/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ class Theme {
toggle.classList.add('jedi-properties-toggle')

// if (this.useToggleEvents) {
toggle.addEventListener('click', () => {
if (config.propertiesContainer.open) {
config.propertiesContainer.close()
} else {
config.propertiesContainer.showModal()
}
})
toggle.addEventListener('click', () => {
if (config.propertiesContainer.open) {
config.propertiesContainer.close()
} else {
config.propertiesContainer.showModal()
}
})
// }

return toggle
Expand Down

0 comments on commit 9bb5c99

Please sign in to comment.