Comparison

util/helpers.lua @ 4536:285450536ec0

util.helpers: After nearly 'fixing' this code, I conclude it instead only deserves a bigger smile
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jan 2012 19:10:13 +0000
parent 2923:b7049746bd29
child 4681:3299223bbed5
comparison
equal deleted inserted replaced
4535:d46e9ad4fe8a 4536:285450536ec0
26 events[events.fire_event] = f; 26 events[events.fire_event] = f;
27 return events; 27 return events;
28 end 28 end
29 29
30 function revert_log_events(events) 30 function revert_log_events(events)
31 events.fire_event, events[events.fire_event] = events[events.fire_event], nil; -- :) 31 events.fire_event, events[events.fire_event] = events[events.fire_event], nil; -- :))
32 end 32 end
33 33
34 function get_upvalue(f, get_name) 34 function get_upvalue(f, get_name)
35 local i, name, value = 0; 35 local i, name, value = 0;
36 repeat 36 repeat