Migrate old externs 9/x

This commit is contained in:
2026-06-17 20:48:46 +08:00
parent 00fe7ca3bb
commit 01d4eb09a6
66 changed files with 708 additions and 420 deletions
+8 -2
View File
@@ -4,7 +4,11 @@
/** @type {System.Debug} */
var debug = __import( "System.Debug" );
/** @type {Components.Vim.IAction} */
/**
* @constructor
* @implements {Components.Vim.IAction}
* @param {Components.Vim.Cursor} Cursor
*/
var PRINT = function( Cursor )
{
/** @type {Components.Vim.Cursor} */
@@ -13,6 +17,8 @@
};
PRINT.prototype.dispose = function() { };
PRINT.prototype.allowMovement = false;
PRINT.prototype.handler = function( e, args, range )
{
e.preventDefault();
@@ -30,7 +36,7 @@
break;
case "":
default:
var lineNum = parseInt( range ) - 1;
var lineNum = parseInt( range, 10 ) - 1;
if( lineNum )
{
this.__cursor.gotoLine( 0 < lineNum ? lineNum : 0 );