Skip to content

Commit

Permalink
Use container variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fowler committed Mar 30, 2015
1 parent c926cd5 commit 53a8bf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/membermap.js
Expand Up @@ -3,7 +3,7 @@

jQuery(document).ready(function($) {
var container = $('.persons');
var people = [].slice.call($('.persons').children());
var people = [].slice.call(container.children());

people_obj = people.reduce(function(p,c) {
var template = function (d) {
Expand Down Expand Up @@ -43,6 +43,7 @@ jQuery(document).ready(function($) {

// Cycles through members and adds their location to the map
$.each(people_obj,function(k,v){

if (k) {
addToMap(k,v);
}
Expand Down

0 comments on commit 53a8bf3

Please sign in to comment.