Commits

Anonymous committed 68ee8d8

Small touch-ups of scrolling code

  • Participants
  • Parent commits 66e6ade

Comments (0)

Files changed (1)

File lib/codemirror.js

       var tmpSb = document.createElement('div'),
           tmpSbInner = document.createElement('div');
       tmpSb.className = "CodeMirror-scrollbar";
-      tmpSb.style.position = "absolute";
-      tmpSb.style.left = "-9999px";
-      tmpSb.style.height = "100px";
-
+      tmpSb.style.cssText = "position: absolute; left: -9999px; height: 100px;";
       tmpSbInner.className = "CodeMirror-scrollbar-inner";
       tmpSbInner.style.height = "200px";
       tmpSb.appendChild(tmpSbInner);
 
   var gecko = /gecko\/\d{7}/i.test(navigator.userAgent);
   var ie = /MSIE \d/.test(navigator.userAgent);
-  var ie_lt8 = /MSIE [1-7]\b/.test(navigator.userAgent)
+  var ie_lt8 = /MSIE [1-7]\b/.test(navigator.userAgent);
   var ie_lt9 = /MSIE [1-8]\b/.test(navigator.userAgent);
   var quirksMode = ie && document.documentMode == 5;
   var webkit = /WebKit\//.test(navigator.userAgent);