@@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
SOFTWARE.
23
23
*/
24
24
( function ( ) {
25
+
25
26
var DocView = function ( element ) {
26
27
this . initialize ( element ) ;
27
28
} ;
@@ -178,7 +179,7 @@ SOFTWARE.
178
179
this . setText ( content ) ;
179
180
180
181
if ( substitution ) {
181
- this . setSubstitution ( substitution )
182
+ this . setSubstitution ( substitution ) ;
182
183
this . showSubstitution ( ) ;
183
184
} else {
184
185
this . showSubstitution ( false ) ;
@@ -210,7 +211,7 @@ SOFTWARE.
210
211
211
212
p . setFlags = function ( flags ) {
212
213
flags = this . validateFlags ( flags ) ;
213
- var expCM = this . expressionCM
214
+ var expCM = this . expressionCM ;
214
215
var str = expCM . getValue ( ) ;
215
216
var index = str . lastIndexOf ( "/" ) ;
216
217
expCM . replaceRange ( flags , { line :0 , ch :index + 1 } , { line :0 , ch :str . length } ) ; // this doesn't work if readOnly is false.
@@ -342,7 +343,7 @@ SOFTWARE.
342
343
} ;
343
344
344
345
p . undo = function ( ) {
345
- if ( this . historyIndex == 0 ) { return ; }
346
+ if ( this . historyIndex === 0 ) { return ; }
346
347
this . history [ -- this . historyIndex ] . undo ( ) ;
347
348
} ;
348
349
@@ -439,7 +440,7 @@ SOFTWARE.
439
440
440
441
this . substHighlighter . draw ( token ) ;
441
442
this . substHover . token = token ;
442
- if ( ! this . error && this . substLexer . errors . length == 0 ) {
443
+ if ( ! this . error && this . substLexer . errors . length === 0 ) {
443
444
try { str = eval ( '"' + str . replace ( / " / g, '\\"' ) + '"' ) ; } catch ( e ) {
444
445
console . error ( "UNCAUGHT js string error" , e ) ;
445
446
}
0 commit comments