From 1539df1fefc87e1bbe34b729cc05ef8e26909c8a Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 13 Nov 2023 10:09:38 +0100 Subject: [PATCH] work in progress [might break] --- com/require.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/com/require.js b/com/require.js index 90ea98e..8c7aa88 100644 --- a/com/require.js +++ b/com/require.js @@ -1,8 +1,12 @@ -AFRAME.registerComponent('xrshell', { - init: function ( ) { - - console.log("this is the boot component which initializes other components") - +AFRAME.registerComponent('require', { + init: function() { }, -}); +}) + // +const updateComponents = AFRAME.AEntity.prototype.updateComponents +AFRAME.AEntity.prototype.updateComponents = function(updateComponents){ + return function(){ + return updateComponents.apply(this,args) + } +}(updateComponents)