Fixed compiled snippet not working

This commit is contained in:
2026-06-13 10:11:34 +08:00
parent 021655464d
commit 8702d252ff
16 changed files with 40 additions and 87 deletions
@@ -40,7 +40,7 @@
, visualizer = function (submitted, override)
{
var src = override ? override.value : this.text.value
, stage = this.stage;
, stage = this && this.stage;
if (submitted && src)
{
@@ -63,7 +63,7 @@
, visualizer = function ( submitted, override )
{
var id, stage = this.stage;
var id, stage = this && this.stage;
if( override )
{
@@ -69,7 +69,7 @@
, visualizer = function ( submitted, override )
{
var id, title, stage = this.stage;
var id, title, stage = this && this.stage;
if( override )
{
@@ -41,8 +41,7 @@
, visualizer = function( submitted, override )
{
var mText, stage = this.stage;
var mText, stage = this && this.stage;
mText = override ? unescapeStr( override.value ) : this.mText.value;
@@ -90,8 +90,7 @@
, visualizer = function ( submitted, override )
{
var size, heading
, stage = this.stage;
var size, heading, stage = this && this.stage;
if ( override )
{
@@ -41,7 +41,7 @@
, visualizer = function( submitted, override )
{
var code, stage = this.stage;
var code, stage = this && this.stage;
code = override ? unescapeStr( override.value ) : this.code.value;
@@ -58,8 +58,7 @@
, visualizer = function ( submitted, override )
{
var src, href, preferred
, stage = this.stage;
var src, href, preferred, stage = this && this.stage;
if ( override )
{
@@ -46,8 +46,7 @@
, visualizer = function (submitted, override)
{
var src, href
, stage = this.stage;
var src, href, stage = this && this.stage;
if( override )
{
@@ -41,7 +41,7 @@
, visualizer = function( submitted, override )
{
var code, stage = this.stage;
var code, stage = this && this.stage;
code = override ? unescapeStr( override.value ) : this.code.value;
@@ -41,7 +41,7 @@
, visualizer = function( submitted, override )
{
var code, stage = this.stage;
var code, stage = this && this.stage;
code = override ? unescapeStr( override.value ) : this.code.value;
@@ -181,7 +181,7 @@
, visualizer = function ( submitted, override )
{
var hash, preferred, _obj, stage = this.stage;
var hash, preferred, _obj, stage = this && this.stage;
if( override )
{
@@ -52,9 +52,7 @@
, visualizer = function (submitted)
{
var src, albumArt , lrc
, stage = this.stage;
var src, albumArt , lrc, stage = this && this.stage;
if (override)
{
@@ -53,8 +53,7 @@
/* @type override {_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler.Override} */
, visualizer = function( submitted, override )
{
var content, title, expanded
, stage = this.stage;
var content, title, expanded, stage = this && this.stage;
if( override )
{