Misc improvements to the doc search JavaScript code

* Stamp "plt-index.js" with the path of its generator.

* Fix most of the "use strict" and js2-mode warnings in scribble's
  JavaScript.

* Some code improvements in the generating code too.

(With some edits by Eli.)

original commit: a624d8de1519a8d69b54aa2f1a08b31d0b03e004
This commit is contained in:
Samuel Bronson 2012-10-06 14:02:25 -04:00 committed by Eli Barzilay
parent d5a9bdadb8
commit 924f38d67d

View File

@ -96,7 +96,7 @@ function GotoPLTRoot(ver, relative) {
// Utilities ------------------------------------------------------------------
normalize_rxs = [/\/\/+/g, /\/\.(\/|$)/, /\/[^\/]*\/\.\.(\/|$)/];
var normalize_rxs = [/\/\/+/g, /\/\.(\/|$)/, /\/[^\/]*\/\.\.(\/|$)/];
function NormalizePath(path) {
var tmp, i;
for (i = 0; i < normalize_rxs.length; i++)