define(["worldpalettetemplate", "text!worldpalette.html"], function (palette, template) { 'use strict'; var activitypalette = {}; activitypalette.ActivityPalette = function (activityButton, datastoreObject) { palette.Palette.call(this, activityButton); var activityTitle; var descriptionLabel; var descriptionBox; this.getPalette().id = "activity-palette"; var containerElem = document.createElement('div'); containerElem.innerHTML = template; this.setContent([containerElem]); this.countryobjects = document.getElementsByClassName("country"); var that = this; for (var i=0; i