-- 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:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

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

index 22e911c5c1ad804958240908e97829db45bf004b..

index ..13f3cbd9f8cff0afdfd6fcf09a15a9899bb095e4 100644

--- 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