/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
define(["jquery", "util", "peers", "windowing", "session"], function ($, util, peers, windowing, session) {
var assert = util.assert;
var templating = util.Module("templating");
templating.clone = function (templateId) {
templateId = "#togetherjs-template-" + templateId;
var template = $(templateId);
assert(template.length, "No template found with id:", templateId);
template = template.clone();
template.attr("id", null);