projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support to Composer to support a model leaf of type empty.
[osm/UI.git]
/
skyquake
/
plugins
/
composer
/
src
/
src
/
libraries
/
model
/
DescriptorModelMetaProperty.js
diff --git
a/skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaProperty.js
b/skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaProperty.js
index
2955e55
..
e064457
100644
(file)
--- a/
skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaProperty.js
+++ b/
skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaProperty.js
@@
-21,8
+21,6
@@
* This class provides utility methods for interrogating an instance of model uiState object.
*/
* This class provides utility methods for interrogating an instance of model uiState object.
*/
-'use strict';
-
import _includes from 'lodash/includes'
import _isArray from 'lodash/isArray'
import guid from './../guid'
import _includes from 'lodash/includes'
import _isArray from 'lodash/isArray'
import guid from './../guid'
@@
-36,6
+34,9
@@
export default {
isBoolean(property = {}) {
return (typeof(property['data-type']) == 'string') && (property['data-type'].toLowerCase() == 'boolean')
},
isBoolean(property = {}) {
return (typeof(property['data-type']) == 'string') && (property['data-type'].toLowerCase() == 'boolean')
},
+ isLeafEmpty(property = {}) {
+ return (typeof(property['data-type']) == 'string') && (property['data-type'].toLowerCase() == 'empty')
+ },
isLeaf(property = {}) {
return /leaf|choice/.test(property.type);
},
isLeaf(property = {}) {
return /leaf|choice/.test(property.type);
},