mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
[refactor] Moved 'clearObject' to its own TS file
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
//General helper functions
|
||||
import {isString} from "./helpers/isString";
|
||||
|
||||
function clearObject(obj) {
|
||||
for (var key in obj) {
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
delete obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Given an element by its Id(usually an 'a' element), removes all event listeners
|
||||
//from that element by cloning and replacing. Then returns the new cloned element
|
||||
function clearEventListeners(elemId) {
|
||||
@@ -80,8 +72,7 @@ function clearSelector(selector) {
|
||||
}
|
||||
}
|
||||
|
||||
export {clearObject,
|
||||
clearEventListeners,
|
||||
export {clearEventListeners,
|
||||
clearEventListenersEl,
|
||||
removeElement,
|
||||
createAccordionElement,
|
||||
|
||||
Reference in New Issue
Block a user