-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: 066b3769d24f715c29967508f08e8626767cb1af: path_to: revision_to:
commit 066b3769d24f715c29967508f08e8626767cb1af Author: James Baicoianu <james_github@baicoianu.com> Date: Sat Jul 22 13:56:17 2017 -0700 Added 'locked' parameter and isEqual function diff --git a/scripts/janusbase.js b/scripts/janusbase.js
--- a/scripts/janusbase.js +++ b/scripts/janusbase.js @@ -24,6 +24,7 @@ elation.require(['engine.things.generic', 'utils.template'], function() { rotation_order: { type: 'string', default: 'XYZ', set: this.pushFrameUpdate }, lighting: { type: 'boolean', default: true }, sync: { type: 'boolean', default: false }, + locked: { type: 'boolean', default: false }, rotate_axis: { type: 'string', default: '0 1 0' }, rotate_deg_per_sec: { type: 'string' }, onclick: { type: 'object' }, @@ -144,6 +145,7 @@ elation.require(['engine.things.generic', 'utils.template'], function() { rotation: ['property', 'rotation'], rotation_order: ['property', 'rotation_order'], sync: ['property', 'sync'], + locked: ['property', 'sync'], visible: ['property', 'visible'], onupdate: ['callback', 'update'], @@ -175,7 +177,8 @@ elation.require(['engine.things.generic', 'utils.template'], function() { addForce: ['function', 'addForce'], removeForce: ['function', 'removeForce'], die: ['function', 'die'], - executeCallback: ['function', 'executeCallback'] + executeCallback: ['function', 'executeCallback'], + isEqual: ['function', 'isEqual'] }); if (classdef) { @@ -445,5 +448,9 @@ console.error('dunno what this is', other); eval(callback); } } + this.isEqual = function(obj) { + var realobj = obj.target || obj; + return this === realobj; + } }, elation.engine.things.generic); });
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 14:56:46 2024