Consider an object obj any:
obj = {q: 1, w: 2, e: 3, r: 4, t: 5, y: 6};
Now I'm iterating under the object's keys and creating an anonymous function that uses this key:
list = []
for (var key in obj) {
list.push(function() {...
asked by
16.05.2014 / 20:40