Migrate old externs 2/x

This commit is contained in:
2026-06-14 05:53:32 +08:00
parent 8702d252ff
commit 77a1e5c22e
84 changed files with 489 additions and 401 deletions
@@ -2,15 +2,15 @@
{
var ns = __namespace( "Astro.Blog.AstroEdit.Visualizer.Snippet" );
/** @type {System.utils.IKey} */
/** @type {typeof System.utils.IKey} */
var IKey = __import( "System.utils.IKey" );
/** @type {System.utils.DataKey} */
/** @type {typeof System.utils.DataKey} */
var DataKey = __import( "System.utils.DataKey" );
/** @type {function(...?): Dandelion.IDOMElement} */
var IDOMElement = __import( "Dandelion.IDOMElement" );
/** @type {typeof Dandelion} */
var Dand = __import( "Dandelion" );
/** @type {Components.MessageBox} */
/** @type {typeof Components.MessageBox} */
var MessageBox = __import( "Components.MessageBox" );
var escapeStr = ns[ NS_INVOKE ]( "escapeStr" );
@@ -41,7 +41,7 @@
, compileListItems = function ()
{
var arr = [];
for ( i in codeLangs )
for ( i = 0; i < codeLangs.length; i ++ )
{
arr[ arr.length ] = Dand.wrapne(
"option"
@@ -119,7 +119,7 @@
}
var langName;
for( var i in codeLangs )
for( i = 0; i < codeLangs.length; i ++ )
{
if( codeLangs[i].keyValue == lang )
{