mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #6925 from ShadowLarkens/vore_cleanup_less_cursed_maybe
Cleanup vore code
This commit is contained in:
@@ -15,9 +15,7 @@
|
||||
var/content = ""
|
||||
var/title_buttons = ""
|
||||
|
||||
|
||||
/datum/browser/New(nuser, nwindow_id, ntitle = 0, nwidth = 0, nheight = 0, var/atom/nref = null)
|
||||
|
||||
user = nuser
|
||||
window_id = nwindow_id
|
||||
if (ntitle)
|
||||
@@ -33,6 +31,14 @@
|
||||
return
|
||||
add_stylesheet("common", 'html/browser/common.css') // this CSS sheet is common to all UIs
|
||||
|
||||
//VOREStation Edit - Allow browser datums to be garbage collected
|
||||
/datum/browser/Destroy()
|
||||
close()
|
||||
ref = null
|
||||
user = null
|
||||
. = ..()
|
||||
//VOREStation Edit End - Allow browser datums to be garbage collected
|
||||
|
||||
/datum/browser/proc/set_title(ntitle)
|
||||
title = format_text(ntitle)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user