define(["widepalette", "text!languagepalette.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.langobjects = document.getElementsByClassName("lang"); var that = this; for (var i=0; i