@@ -1054,14 +1054,14 @@ function Scripts(main) {
1054
1054
} ) ;
1055
1055
}
1056
1056
} else {
1057
- //var prefix;
1057
+ // var prefix;
1058
1058
1059
- _obj . common . engineType = newCommon . engineType || _obj . common . engineType || 'Javascript/js' ;
1060
- var parts = _obj . common . engineType . split ( '/' ) ;
1059
+ // var parts = _obj.common.engineType.split('/');
1061
1060
1062
- //prefix = 'script.' + (parts[1] || parts[0]) + '.';
1061
+ // prefix = 'script.' + (parts[1] || parts[0]) + '.';
1063
1062
1064
- if ( _obj ) {
1063
+ if ( _obj && _obj . common ) {
1064
+ _obj . common . engineType = newCommon . engineType || _obj . common . engineType || 'Javascript/js' ;
1065
1065
that . main . socket . emit ( 'delObject' , oldId , function ( err ) {
1066
1066
if ( err ) {
1067
1067
that . main . showError ( err ) ;
@@ -2122,7 +2122,7 @@ function Scripts(main) {
2122
2122
2123
2123
if ( this . main . config [ 'script-editor-wrap-lines' ] ) $ ( '#edit-wrap-lines' ) . prop ( 'checked' , true ) ;
2124
2124
if ( this . main . config [ 'script-editor-dialog-wrap-lines' ] ) $ ( '#dialog-edit-wrap-lines' ) . prop ( 'checked' , true ) ;
2125
-
2125
+
2126
2126
$ ( '#edit-check-blocks' ) . button ( {
2127
2127
icons : {
2128
2128
primary : 'ui-icon-check'
@@ -2408,7 +2408,7 @@ function Scripts(main) {
2408
2408
}
2409
2409
2410
2410
this . editorDialog . getSession ( ) . setUseWrapMode ( $ ( '#dialog-edit-wrap-lines' ) . prop ( 'checked' ) ) ;
2411
-
2411
+
2412
2412
this . $dialogScript
2413
2413
. dialog ( 'option' , 'width' , width )
2414
2414
. dialog ( 'option' , 'height' , height )
@@ -2417,7 +2417,7 @@ function Scripts(main) {
2417
2417
this . editorDialog . focus ( ) ;
2418
2418
2419
2419
that . editorDialog . _isReturn = isReturn ;
2420
-
2420
+
2421
2421
setTimeout ( function ( ) {
2422
2422
that . editorDialog . _changed = false ;
2423
2423
$ ( '#dialog_script_save' ) . button ( 'disable' ) ;
0 commit comments