@@ -1217,8 +1217,9 @@ export function makeDescription (
1217
1217
}
1218
1218
1219
1219
const editable = kb . updater . editable ( dataDoc . uri )
1220
+ let submit
1220
1221
if ( editable ) {
1221
- var submit = widgets . continueButton ( dom , saveChange )
1222
+ submit = widgets . continueButton ( dom , saveChange )
1222
1223
submit . disabled = true // until the filled has been modified
1223
1224
submit . style . visibility = 'hidden'
1224
1225
submit . style . float = 'right'
@@ -1293,7 +1294,7 @@ export function makeSelectForOptions (
1293
1294
return errorMessageBlock ( dom , "Selector: can't mint new with no subform." )
1294
1295
}
1295
1296
log . debug ( 'makeSelectForOptions: dataDoc=' + dataDoc )
1296
-
1297
+ let actual
1297
1298
const getActual = function ( ) {
1298
1299
actual = { }
1299
1300
if ( predicate . sameTerm ( ns . rdf ( 'type' ) ) ) {
@@ -1305,7 +1306,7 @@ export function makeSelectForOptions (
1305
1306
}
1306
1307
return actual
1307
1308
}
1308
- var actual = getActual ( )
1309
+ actual = getActual ( )
1309
1310
1310
1311
const onChange = function ( _e ) {
1311
1312
select . disabled = true // until data written back - gives user feedback too
@@ -1316,10 +1317,10 @@ export function makeSelectForOptions (
1316
1317
ds . push ( $rdf . st ( subject , predicate , t , dataDoc ) )
1317
1318
}
1318
1319
}
1320
+ let newObject
1319
1321
for ( let i = 0 ; i < select . options . length ; i ++ ) {
1320
1322
const opt = select . options [ i ]
1321
1323
if ( opt . selected && opt . AJAR_mint ) {
1322
- var newObject
1323
1324
if ( options . mintClass ) {
1324
1325
const thisForm = promptForNew (
1325
1326
dom ,
0 commit comments