define(["viewpalettetemplate", "text!viewpalette.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.projectionobjects = document.getElementsByClassName("view"); var that = this; for (var i=0; i