comparison mquery.js @ 23:068d63627b16

Populate in scope symbol buttons when clicking on a symbol in the source
author Mike Pavone <pavone@retrodev.com>
date Mon, 26 Mar 2012 21:29:03 -0700
parents 85fb6ba15bc6
children 4d87c38404d6
comparison
equal deleted inserted replaced
22:40a85f135be5 23:068d63627b16
1 function each(container, fun) 1 function each(container, fun)
2 { 2 {
3 if (container instanceof Array) { 3 if (container instanceof Array) {
4 for (var i = 0; i < container.length; i++) { 4 for (var i = 0; i < container.length; i++) {
5 fun(i, conatiner[i]); 5 fun(i, container[i]);
6 } 6 }
7 } else { 7 } else {
8 for (var i in container) { 8 for (var i in container) {
9 if (container.hasOwnProperty(i)) { 9 if (container.hasOwnProperty(i)) {
10 fun(i, container[i]); 10 fun(i, container[i]);