MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / commentString

Function commentString

api/prettydiff-webtool.ts:4265–4284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4263 //toggles between modes
4264 method.event.modeToggle = function dom_event_modeToggle(mode:string):void {
4265 const commentString = function dom_event_modeToggle_commentString():void {
4266 const value:string = `mode: "${options.mode}"`;
4267 let a:number = data.commentString.length;
4268 if (a > 0) {
4269 do {
4270 a = a - 1;
4271 if (data.commentString[a].indexOf("mode:") === 0) {
4272 data.commentString[a] = value;
4273 break;
4274 }
4275 if (data.commentString[a] < "mode:") {
4276 data.commentString.splice(a, 0, value);
4277 break;
4278 }
4279 } while (a > 0);
4280 } else {
4281 data.commentString.push(value);
4282 }
4283 method.app.commentString();
4284 },
4285 cycleOptions = function dom_event_modeToggle_cycleOptions():void {
4286 const li:HTMLLIElement[] = id("addOptions").getElementsByTagName("li"),
4287 lilen:number = li.length,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected