Skip to content

Instantly share code, notes, and snippets.

// JS closures
function buildList(list) {
var result = [];
for (var i = 0; i < list.length; i++) {
var item = 'item' + list[i];
//alert(item + ' ' + list[i]);
//result.push(function() { alert(item + ' ' + list[i]) });
result.push(Foo(item + ' ' + list[i]));
}
return result;
@jainrocks
jainrocks / error_not_working
Created June 9, 2015 05:04
after modifications working? I am getting this error
06-09 10:32:34.171 1785-1785/com.sandboxapp.sandbox D/dalvikvm﹕ Late-enabling CheckJNI
06-09 10:32:34.191 1785-1785/com.sandboxapp.sandbox D/dalvikvm﹕ Trying to load lib /data/data/com.lbe.security.miui/app_hips/liblbeclient.so 0x423966f8
06-09 10:32:34.191 1785-1785/com.sandboxapp.sandbox D/dalvikvm﹕ Added shared lib /data/data/com.lbe.security.miui/app_hips/liblbeclient.so 0x423966f8
06-09 10:32:34.261 1785-1785/com.sandboxapp.sandbox I/MultiDex﹕ VM with version 1.6.0 does not have multidex support
06-09 10:32:34.261 1785-1785/com.sandboxapp.sandbox I/MultiDex﹕ install
06-09 10:32:34.261 1785-1785/com.sandboxapp.sandbox I/MultiDex﹕ MultiDexExtractor.load(/data/app/com.sandboxapp.sandbox-1.apk, false)
06-09 10:32:34.271 1785-1785/com.sandboxapp.sandbox I/MultiDex﹕ loading existing secondary dex files
06-09 10:32:34.271 1785-1785/com.sandboxapp.sandbox I/MultiDex﹕ load found 1 secondary dex files
06-09 10:32:34.271 1785-1785/com.sandboxapp.sandbox I/MultiDex﹕ install done
06-09 10:3