repo: janusweb
action: commit
revision: 
path_from: 
revision_from: f2148f2fcf2528604627eabb0cf0d13fc1408314:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit f2148f2fcf2528604627eabb0cf0d13fc1408314
Author: James Baicoianu 
Date:   Tue Jan 23 19:40:40 2018 -0800

    Check both this and other for collision_trigger

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index a563a4919effc4a1415e45ad2254b4726fb9e9f4..
index ..91f3302bc1b65e867848d4e036bc70032c099621 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -557,7 +557,7 @@ elation.require(['engine.things.generic', 'utils.template'], function() {
           //console.log('I collided', proxy, this);
           elation.events.fire({type: 'collision', element: this, data: proxy});

-          if (proxy.collision_trigger) {
+          if (this.collision_trigger || proxy.collision_trigger) {
             ev.preventDefault();
             ev.stopPropagation();
           }

-----END OF PAGE-----