Minor fix in the Inspector code

This commit is contained in:
alekseybobkov 2014-10-29 23:09:13 -07:00
parent ac37d23d14
commit 3deb4ee654
1 changed files with 8 additions and 6 deletions

View File

@ -307,13 +307,15 @@
})
var matches = []
if (matches = propertyValue.match(/^\{\{([^\}]+)\}\}$/)) {
var value = $.trim(matches[1])
if (propertyValue) {
if (matches = propertyValue.match(/^\{\{([^\}]+)\}\}$/)) {
var value = $.trim(matches[1])
if (value.length > 0) {
self.showExternalParameterEditor($editorContainer, $editor, $editorLink, $td, true)
$editor.find('input').val(value)
self.writeProperty(property, null, true)
if (value.length > 0) {
self.showExternalParameterEditor($editorContainer, $editor, $editorLink, $td, true)
$editor.find('input').val(value)
self.writeProperty(property, null, true)
}
}
}
}