User Tools

Site Tools


script_event_bus

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
script_event_bus [2015/05/30 23:56]
cdfa
script_event_bus [2015/06/01 06:16] (current)
cdfa
Line 19: Line 19:
 var data = JSON.parse(event.getData());​ var data = JSON.parse(event.getData());​
 var cont = event.getContainer();​ var cont = event.getContainer();​
-var i+var i, id
  
 function getOb(id){ function getOb(id){
-  if(obId.toString().length==6){ +  if(id.toString().length==6){ 
-    ob=LL.getItemById(obId);+    ob=LL.getItemById(id);
   }else{   }else{
-    ob=LL.getContainerById(obId);+    ob=LL.getContainerById(id);
   }   }
   return ob   return ob
script_event_bus.1433030164.txt.gz · Last modified: 2015/05/30 23:56 by cdfa