Browse files

Adding MPLv2 to the JavaScript files that didn't include it.

  • Loading branch information...
1 parent f0fa698 commit acb8e818dbd354e41ae98b5483e3d018e0ad955f @simonwex simonwex committed Mar 13, 2013
View
4 addon/data/attachment.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
self.port.on("Config", function (config) {
var doc = unsafeWindow.document;
unsafeWindow._TowTruckBookmarklet = true;
View
4 addon/data/button.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
self.port.on("TowTruckOn", function () {
document.getElementById("towtruck-button").innerHTML = "truckin'";
});
View
4 addon/lib/main.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
const widgets = require("widget");
const data = require("self").data;
const tabs = require("tabs");
View
8 addon/lib/startup-panel.js
@@ -1,6 +1,8 @@
-/*
-Shows a panel (typically describing the addon) the first time an addon is installed.
-*/
+/* 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/. */
+
+// Shows a panel (typically describing the addon) the first time an addon is installed.
const { Panel } = require("panel");
const ss = require("simple-storage");
View
4 app/http/public/recorder.less
@@ -1,3 +1,7 @@
+/* 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/. */
+
body {
font-family: sans-serif;
}
View
4 app/http/public/style.css
@@ -1,3 +1,7 @@
+/* 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/. */
+
body {
padding-bottom: 0px;
background-color: #1baefc;
View
4 app/http/public/towtruck.less
@@ -1,3 +1,7 @@
+/* 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/. */
+
/*Fonts*/
@font-face {
font-family: openSansRegular;
View
4 app/http/public/towtruck/channels.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
/* Channel abstraction. Supported channels:
- WebSocket to an address
View
4 app/http/public/towtruck/chat.js
@@ -1,3 +1,7 @@
+/* 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(["require", "jquery", "util", "session", "ui", "templates", "playback"], function (require, $, util, session, ui, templates, playback) {
var chat = util.Module("chat");
var assert = util.assert;
View
9 app/http/public/towtruck/cobrowse.js
@@ -1,5 +1,9 @@
-/* Co-browsing: moving around the site together
- */
+/* 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/. */
+
+// Co-browsing: moving around the site together
+
define(["jquery", "util", "session", "ui"], function ($, util, session, ui) {
var assert = util.assert;
@@ -25,3 +29,4 @@ define(["jquery", "util", "session", "ui"], function ($, util, session, ui) {
});
});
+
View
8 app/http/public/towtruck/cursor.js
@@ -1,5 +1,9 @@
-/* Cursor viewing support
- */
+/* 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/. */
+
+// Cursor viewing support
+
define(["jquery", "ui", "util", "session", "element-finder", "tinycolor", "eventMaker"], function ($, ui, util, session, elementFinder, tinycolor, eventMaker) {
var assert = util.assert;
var AssertionError = util.AssertionError;
View
4 app/http/public/towtruck/element-finder.js
@@ -1,3 +1,7 @@
+/* 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(["util", "jquery"], function (util, $) {
var elementFinder = util.Module("element-finder");
var assert = util.assert;
View
4 app/http/public/towtruck/eventMaker.js
@@ -1,3 +1,7 @@
+/* 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"], function ($, util) {
var eventMaker = util.Module("eventMaker");
var assert = util.assert;
View
4 app/http/public/towtruck/libs/alien-avatar-generator.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
(function () {
var $ = window.$;
View
4 app/http/public/towtruck/playback.js
@@ -1,3 +1,7 @@
+/* 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", "session"], function ($, util, session) {
var playback = util.Module("playback");
var assert = util.assert;
View
4 app/http/public/towtruck/recorder.js
@@ -1,3 +1,7 @@
+/* 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", "channels"], function ($, util, channels) {
var recorder = util.Module("recorder");
var assert = util.assert;
View
4 app/http/public/towtruck/session.js
@@ -1,3 +1,7 @@
+/* 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(["require", "util", "channels", "jquery"], function (require, util, channels, $) {
var DEBUG = true;
View
4 app/http/public/towtruck/tracker.js
@@ -1,3 +1,7 @@
+/* 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", "session", "element-finder"], function ($, util, session, elementFinder) {
var tracker = util.Module("tracker");
View
4 app/http/public/towtruck/ui.js
@@ -1,3 +1,7 @@
+/* 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(["require", "jquery", "util", "session", "templates", "element-finder"], function (require, $, util, session, templates, elementFinder) {
TowTruck.$ = $;
var ui = util.Module('ui');
View
4 app/http/public/towtruck/util.js
@@ -1,3 +1,7 @@
+/* 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([], function () {
var util = {};
/* A simple class pattern, use like:
View
9 app/http/public/towtruck/webrtc.js
@@ -1,6 +1,9 @@
-/* WebRTC support
- Note that this relies on parts of the interface code that usually goes in ui.js
- */
+/* 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/. */
+
+// WebRTC support -- Note that this relies on parts of the interface code that usually goes in ui.js
+
define(["require", "jquery", "util", "session", "ui"], function (require, $, util, session, ui) {
var webrtc = util.Module("webrtc");
var assert = util.assert;
View
4 app/http/views/towtruck/templates.js
@@ -1,3 +1,7 @@
+/* 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(["util"], function (util) {
function clean(t) {
t = t.replace(/[<][%]\s*\/\*[\S\s\r\n]*\*\/\s*[%][>]/, "");
View
4 app/http/views/towtruck/towtruck.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
/*jshint scripturl:true */
(function () {
View
4 app/hub/server.js
@@ -1,3 +1,7 @@
+/* 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/. */
+
var WebSocketServer = require('websocket').server;
var WebSocketRouter = require('websocket').router;
var http = require('http');

0 comments on commit acb8e81

Please sign in to comment.