abc2svg
Check-in [b731b944f9]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:web: abcweb: fix: crash when page formatting since version 1.22.0 - reported by Gary Billey
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: b731b944f9ae89e87b7879a048b51b7e51db07f2
User & Date: jef 2022-08-11 16:46:24
Context
2022-08-11
16:46
web: abcweb: fix: crash when page formatting since version 1.22.0 - reported by Gary Billey ... (Leaf check-in: b731b944f9 user: jef tags: trunk)
2022-08-07
16:26
modules: abcweb: crash with firefox - reported by Gerhard Schacherl ... (check-in: 25da63cff4 user: jef tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to util/abcweb.js.

346
347
348
349
350
351
352


353
354
355
356
357
358
359
			
			mu.d.innerHTML = outb	// update the browser

			mu.d.addEventListener('click', abc2svg.playseq)
			e = mu.d.getElementsByTagName('svg')
			for (i = 0; i < e.length; i++) {
				j = e[i].getAttribute('class')


				j = j.match(/tune(\d+)/)
				if (!j)
					continue
				j = j[1]		// tune number
				tune_lst[j] = null	// get new play references
			}








>
>







346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
			
			mu.d.innerHTML = outb	// update the browser

			mu.d.addEventListener('click', abc2svg.playseq)
			e = mu.d.getElementsByTagName('svg')
			for (i = 0; i < e.length; i++) {
				j = e[i].getAttribute('class')
				if (!j)
					continue	// (page formatting)
				j = j.match(/tune(\d+)/)
				if (!j)
					continue
				j = j[1]		// tune number
				tune_lst[j] = null	// get new play references
			}