Browse Source

Use strict javascript globally.

pull/154/merge
Simon Eisenmann 11 years ago
parent
commit
0c88aeab0e
  1. 3
      .jshint
  2. 1
      src/i18n/helpers/languages.py
  3. 2
      static/js/app.js
  4. 5
      static/js/base.js
  5. 2
      static/js/controllers/chatroomcontroller.js
  6. 2
      static/js/controllers/contactsmanagercontroller.js
  7. 2
      static/js/controllers/contactsmanagereditcontroller.js
  8. 2
      static/js/controllers/controllers.js
  9. 2
      static/js/controllers/mediastreamcontroller.js
  10. 2
      static/js/controllers/roomchangecontroller.js
  11. 2
      static/js/controllers/statusmessagecontroller.js
  12. 2
      static/js/controllers/usersettingscontroller.js
  13. 2
      static/js/directives/audiolevel.js
  14. 2
      static/js/directives/audiovideo.js
  15. 2
      static/js/directives/bfi.js
  16. 2
      static/js/directives/buddylist.js
  17. 2
      static/js/directives/buddypicturecapture.js
  18. 2
      static/js/directives/buddypictureupload.js
  19. 2
      static/js/directives/chat.js
  20. 2
      static/js/directives/contactrequest.js
  21. 2
      static/js/directives/defaultdialog.js
  22. 2
      static/js/directives/directives.js
  23. 2
      static/js/directives/fileinfo.js
  24. 2
      static/js/directives/odfcanvas.js
  25. 2
      static/js/directives/onenter.js
  26. 2
      static/js/directives/onescape.js
  27. 2
      static/js/directives/page.js
  28. 2
      static/js/directives/pdfcanvas.js
  29. 2
      static/js/directives/presentation.js
  30. 2
      static/js/directives/roombar.js
  31. 2
      static/js/directives/screenshare.js
  32. 2
      static/js/directives/settings.js
  33. 2
      static/js/directives/socialshare.js
  34. 2
      static/js/directives/statusmessage.js
  35. 2
      static/js/directives/title.js
  36. 2
      static/js/directives/usability.js
  37. 2
      static/js/directives/youtubevideo.js
  38. 2
      static/js/filters/buddyimagesrc.js
  39. 2
      static/js/filters/displayconference.js
  40. 2
      static/js/filters/displayname.js
  41. 2
      static/js/filters/displaynameforsession.js
  42. 2
      static/js/filters/displayuserid.js
  43. 2
      static/js/filters/filters.js
  44. 2
      static/js/filters/formatbase1000.js
  45. 2
      static/js/main.js
  46. 2
      static/js/mediastream/api.js
  47. 2
      static/js/mediastream/connector.js
  48. 2
      static/js/mediastream/peercall.js
  49. 2
      static/js/mediastream/peerconference.js
  50. 2
      static/js/mediastream/peerconnection.js
  51. 2
      static/js/mediastream/peerscreenshare.js
  52. 2
      static/js/mediastream/peerxfer.js
  53. 2
      static/js/mediastream/tokens.js
  54. 2
      static/js/mediastream/usermedia.js
  55. 2
      static/js/mediastream/utils.js
  56. 2
      static/js/mediastream/webrtc.js
  57. 2
      static/js/services/alertify.js
  58. 2
      static/js/services/animationframe.js
  59. 2
      static/js/services/api.js
  60. 2
      static/js/services/appdata.js
  61. 2
      static/js/services/buddydata.js
  62. 2
      static/js/services/buddylist.js
  63. 1
      static/js/services/buddypicture.js
  64. 2
      static/js/services/buddysession.js
  65. 2
      static/js/services/chromeextension.js
  66. 2
      static/js/services/connector.js
  67. 2
      static/js/services/constraints.js
  68. 2
      static/js/services/contactdata.js
  69. 2
      static/js/services/contacts.js
  70. 2
      static/js/services/continueconnector.js
  71. 2
      static/js/services/desktopnotify.js
  72. 2
      static/js/services/dialogs.js
  73. 2
      static/js/services/enrichmessage.js
  74. 2
      static/js/services/fastscroll.js
  75. 2
      static/js/services/filedata.js
  76. 2
      static/js/services/filedownload.js
  77. 2
      static/js/services/filetransfer.js
  78. 2
      static/js/services/fileupload.js
  79. 2
      static/js/services/geolocation.js
  80. 2
      static/js/services/localstatus.js
  81. 2
      static/js/services/localstorage.js
  82. 2
      static/js/services/mediasources.js
  83. 2
      static/js/services/mediastream.js
  84. 2
      static/js/services/playsound.js
  85. 2
      static/js/services/randomgen.js
  86. 2
      static/js/services/resturl.js
  87. 2
      static/js/services/roompin.js
  88. 2
      static/js/services/rooms.js
  89. 2
      static/js/services/safeapply.js
  90. 2
      static/js/services/safedisplayname.js
  91. 2
      static/js/services/safemessage.js
  92. 2
      static/js/services/screensharing.js
  93. 2
      static/js/services/services.js
  94. 2
      static/js/services/toastr.js
  95. 2
      static/js/services/translation.js
  96. 2
      static/js/services/usersettingsdata.js
  97. 2
      static/js/services/videolayout.js
  98. 2
      static/js/services/videowaiter.js
  99. 2
      static/js/services/visibility.js
  100. 2
      static/js/services/webrtc.js
  101. Some files were not shown because too many files have changed in this diff Show More

3
.jshint

@ -22,7 +22,8 @@ @@ -22,7 +22,8 @@
"smarttabs": true,
"trailing": true,
"undef": true,
"unused": false // Disabled for now
"unused": false, // Disabled for now
"globalstrict": true
}

1
src/i18n/helpers/languages.py

@ -16,6 +16,7 @@ import json @@ -16,6 +16,7 @@ import json
def main():
print """// This file is auto generated, do not modify.
"use strict";
define([], function() {
return %s;
});""" % json.dumps(LANGUAGES)

2
static/js/app.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'require',
'jquery',

5
static/js/base.js

@ -18,8 +18,9 @@ @@ -18,8 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
// Helper module to put non dependency base libraries together.
define([
"use strict";
define([ // Helper module to put non dependency base libraries together.
'modernizr',
'moment',
'Howler',

2
static/js/controllers/chatroomcontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'moment', 'text!partials/fileinfo.html', 'text!partials/contactrequest.html', 'text!partials/geolocation.html'], function($, _, moment, templateFileInfo, templateContactRequest, templateGeolocation) {
// ChatroomController

2
static/js/controllers/contactsmanagercontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// ContactsmanagerController

2
static/js/controllers/contactsmanagereditcontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// ContactsmanagereditController

2
static/js/controllers/controllers.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'underscore',

2
static/js/controllers/mediastreamcontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'angular', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'webrtc.adapter'], function($, _, angular, BigScreen, moment, sjcl, Modernizr) {
return ["$scope", "$rootScope", "$element", "$window", "$timeout", "safeDisplayName", "safeApply", "mediaStream", "appData", "playSound", "desktopNotify", "alertify", "toastr", "translation", "fileDownload", "localStorage", "screensharing", "userSettingsData", "localStatus", "dialogs", "rooms", "constraints", function($scope, $rootScope, $element, $window, $timeout, safeDisplayName, safeApply, mediaStream, appData, playSound, desktopNotify, alertify, toastr, translation, fileDownload, localStorage, screensharing, userSettingsData, localStatus, dialogs, rooms, constraints) {

2
static/js/controllers/roomchangecontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
return ["$scope", "rooms", function($scope, rooms) {
$scope.joinRoomByName = rooms.joinByName;

2
static/js/controllers/statusmessagecontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// StatusmessageController

2
static/js/controllers/usersettingscontroller.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// UsersettingsController

2
static/js/directives/audiolevel.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore'], function($, _) {
return ["$window", "mediaStream", "safeApply", "animationFrame", function($window, mediaStream, safeApply, animationFrame) {

2
static/js/directives/audiovideo.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/audiovideopeer.html', 'bigscreen', 'webrtc.adapter'], function($, _, template, templatePeer, BigScreen) {
return ["$window", "$compile", "$filter", "mediaStream", "safeApply", "desktopNotify", "buddyData", "videoWaiter", "videoLayout", "animationFrame", function($window, $compile, $filter, mediaStream, safeApply, desktopNotify, buddyData, videoWaiter, videoLayout, animationFrame) {

2
static/js/directives/bfi.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["bootstrap-file-input"], function() {
// bfi

2
static/js/directives/buddylist.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'text!partials/buddylist.html'], function(_, template) {
// buddyList

2
static/js/directives/buddypicturecapture.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/buddypicturecapture.html'], function($, _, template) {
// buddyPictureCapture

2
static/js/directives/buddypictureupload.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/buddypictureupload.html'], function($, _, template) {
// buddyPictureUpload

2
static/js/directives/chat.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatroom.html'], function($, _, templateChat, templateChatroom) {
return ["$compile", "safeDisplayName", "mediaStream", "safeApply", "desktopNotify", "translation", "playSound", "fileUpload", "randomGen", "buddyData", "appData", "$timeout", "geolocation", function($compile, safeDisplayName, mediaStream, safeApply, desktopNotify, translation, playSound, fileUpload, randomGen, buddyData, appData, $timeout, geolocation) {

2
static/js/directives/contactrequest.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore'], function($, _) {
return ["translation", "buddyData", "contacts", function(translation, buddyData, contacts) {

2
static/js/directives/defaultdialog.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['text!partials/defaultdialog.html'], function(defaultDialogTemplate) {
// defautlDialog

2
static/js/directives/directives.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'underscore',

2
static/js/directives/fileinfo.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'moment'], function($, _, moment) {
return ["fileData", "fileUpload", "fileDownload", "mediaStream", "$window", "alertify", "translation", function(fileData, fileUpload, fileDownload, mediaStream, $window, alertify, translation) {

2
static/js/directives/odfcanvas.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['require', 'underscore', 'jquery'], function(require, _, $) {
return ["$window", "$compile", "translation", "safeApply", function($window, $compile, translation, safeApply) {

2
static/js/directives/onenter.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// onEnter

2
static/js/directives/onescape.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// onEscape

2
static/js/directives/page.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['text!partials/page.html', 'text!partials/page/welcome.html'], function(template, welcome) {
return ["$templateCache", "$timeout", "rooms", function($templateCache, $timeout, rooms) {

2
static/js/directives/pdfcanvas.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['require', 'underscore', 'jquery'], function(require, _, $) {
return ["$window", "$compile", "translation", "safeApply", function($window, $compile, translation, safeApply) {

2
static/js/directives/presentation.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'], function($, _, template, BigScreen) {
return ["$window", "mediaStream", "fileUpload", "fileDownload", "alertify", "translation", "randomGen", "fileData", function($window, mediaStream, fileUpload, fileDownload, alertify, translation, randomGen, fileData) {

2
static/js/directives/roombar.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'angular', 'text!partials/roombar.html'], function(_, angular, template) {
// roomBar

2
static/js/directives/screenshare.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/screenshare.html', 'text!partials/screensharepeer.html', 'bigscreen', 'webrtc.adapter'], function($, _, template, templatePeer, BigScreen) {
return ["$window", "mediaStream", "$compile", "safeApply", "videoWaiter", "$timeout", "alertify", "translation", "screensharing", function($window, mediaStream, $compile, safeApply, videoWaiter, $timeout, alertify, translation, screensharing) {

2
static/js/directives/settings.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/settings.html'], function($, _, template) {
var videoQualityMap = {

2
static/js/directives/socialshare.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['text!partials/socialshare.html'], function(template) {
var urls = {

2
static/js/directives/statusmessage.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['text!partials/statusmessage.html'], function(template) {
// statusMessage

2
static/js/directives/title.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
return [function() {
var link = function($scope, $element, attrs) {

2
static/js/directives/usability.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/usability.html'], function($, _, template) {
var MEDIA_CHECK = "1" // First version of media check flag.

2
static/js/directives/youtubevideo.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'], function($, _, template, BigScreen) {
return ["$window", "$document", "mediaStream", "alertify", "translation", "safeApply", "appData", "$q", function($window, $document, mediaStream, alertify, translation, safeApply, appData, $q) {

2
static/js/filters/buddyimagesrc.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["underscore"], function(_) {
// Create URLs for blobs.

2
static/js/filters/displayconference.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// displayConference

2
static/js/filters/displayname.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// displayName

2
static/js/filters/displaynameforsession.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery"], function($) {
// displayNameForSession

2
static/js/filters/displayuserid.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// displayUserid

2
static/js/filters/filters.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'underscore',

2
static/js/filters/formatbase1000.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// formatBase1000

2
static/js/main.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
require.config({
waitSeconds: 300,
paths: {

2
static/js/mediastream/api.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'ua-parser'], function($, _, uaparser) {
var alive_check_timeout = 5000;

2
static/js/mediastream/connector.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore'], function($, _) {
var timeout = 5000;

2
static/js/mediastream/peercall.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'mediastream/utils', 'mediastream/peerconnection'], function($, _, utils, PeerConnection) {
var PeerCall = function(webrtc, id, from, to) {

2
static/js/mediastream/peerconference.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'mediastream/peercall'], function($, _, PeerCall) {
//NOTE(longsleep): This id should be changed to something undeterministic.

2
static/js/mediastream/peerconnection.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'webrtc.adapter'], function($, _) {
var count = 0;

2
static/js/mediastream/peerscreenshare.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens'], function($, _, PeerCall, tokens) {
var screenshareIds = 0;

2
static/js/mediastream/peerxfer.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens', 'webrtc.adapter'], function($, _, PeerCall, tokens) {
var xfersIds = 0;

2
static/js/mediastream/tokens.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore'], function($, _) {
var Token = function(handlerKey) {

2
static/js/mediastream/usermedia.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'audiocontext', 'webrtc.adapter'], function($, _, AudioContext) {
// Create AudioContext singleton, if supported.

2
static/js/mediastream/utils.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
var Utils = function() {}

2
static/js/mediastream/webrtc.js

@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
*
*/
"use strict";
// Android detection hack - probably put this someplace else.
var webrtcDetectedAndroid = ((window.navigator || {}).userAgent).match(/android (\d+)/i) !== null;

2
static/js/services/alertify.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["angular"], function(angular) {
var modalController = ["$scope", "$modalInstance", "data", function($scope, $modalInstance, data) {

2
static/js/services/animationframe.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["underscore", "rAF"], function(_) {
// animationFrame

2
static/js/services/api.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'mediastream/api'
], function(Api) {

2
static/js/services/appdata.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery"], function($) {
// appData.e events:

2
static/js/services/buddydata.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore'], function(_) {
// buddyData

2
static/js/services/buddylist.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'angular', 'underscore', 'modernizr', 'avltree', 'text!partials/buddy.html', 'text!partials/buddyactions.html', 'text!partials/buddyactionsforaudiomixer.html'], function($, angular, _, Modernizr, AvlTree, templateBuddy, templateBuddyActions, templateBuddyActionsForAudioMixer) {
var BuddyTree = function() {

1
static/js/services/buddypicture.js

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
*
*/
"use strict";
define([], function() {
// buddyPicture

2
static/js/services/buddysession.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["underscore"], function(_) {
// buddySession

2
static/js/services/chromeextension.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["underscore", "jquery", "webrtc.adapter"], function(_, $) {
// chromeExtension

2
static/js/services/connector.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'mediastream/connector'
], function(Connector) {

2
static/js/services/constraints.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery", "underscore"], function($, _) {
// constraints

2
static/js/services/contactdata.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'jquery'], function(_, $) {
// contactData

2
static/js/services/contacts.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'jquery', 'modernizr', 'sjcl', 'text!partials/contactsmanager.html', 'text!partials/contactsmanageredit.html'], function(_, $, Modernizr, sjcl, templateContactsManager, templateContactsManagerEdit) {
var Database = function(name) {

2
static/js/services/continueconnector.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore'], function(_) {
// Helper class to kill of old defers.

2
static/js/services/desktopnotify.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore', 'desktop-notify'], function($, _, notify) {
return ["$window", function($window) {

2
static/js/services/dialogs.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["angular"], function(angular) {
// dialogs

2
static/js/services/enrichmessage.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// enrichMessage

2
static/js/services/fastscroll.js

@ -41,6 +41,8 @@ @@ -41,6 +41,8 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
"use strict";
define(["jquery"], function($) {
var dispatchClick = function(coords) {

2
static/js/services/filedata.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery", "underscore", "sha", "webrtc.adapter"], function($, _, JsSHA) {
var requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem || null;

2
static/js/services/filedownload.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery", "underscore"], function($, _) {
return ["fileData", "fileTransfer", "$window", "mediaStream", "safeApply", "$timeout", function(fileData, fileTransfer, $window, mediaStream, safeApply, $timeout) {

2
static/js/services/filetransfer.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["mediastream/webrtc", "webrtc.adapter"], function() {
// Simple array buffer join function, to create a third array buffer

2
static/js/services/fileupload.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery", "underscore", "webrtc.adapter"], function($, _) {
// fileUpload

2
static/js/services/geolocation.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'modernizr'], function(_, Modernizr) {
var supported = Modernizr.geolocation;

2
static/js/services/localstatus.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['angular', 'underscore'], function(angular, _) {
// localStatus

2
static/js/services/localstorage.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["modernizr"], function(Modernizr) {
// localStorage

2
static/js/services/mediasources.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['jquery', 'underscore'], function($, _) {
return ["$window", function($window) {

2
static/js/services/mediastream.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'jquery',
'underscore',

2
static/js/services/playsound.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'Howler', 'require'], function(_, Howler, require) {
var SoundInterval = function(sound, id, time) {

2
static/js/services/randomgen.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["underscore"], function(_) {
// randomGen

2
static/js/services/resturl.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
], function() {

2
static/js/services/roompin.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
], function() {

2
static/js/services/rooms.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'angular',
'jquery'

2
static/js/services/safeapply.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
return ["$rootScope", function($rootScope) {

2
static/js/services/safedisplayname.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// safeDisplayName

2
static/js/services/safemessage.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([], function() {
// safeMessage

2
static/js/services/screensharing.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['underscore', 'webrtc.adapter'], function(_) {
// screensharing

2
static/js/services/services.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'underscore',

2
static/js/services/toastr.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['toastr'], function(toastr) {
// toastr

2
static/js/services/translation.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jed", "underscore"], function(Jed, _) {
var TranslationScope = function(service, context, domain) {

2
static/js/services/usersettingsdata.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["sjcl"], function(sjcl) {
// userSettingsData

2
static/js/services/videolayout.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["jquery", "underscore", "modernizr", "injectCSS"], function($, _, Modernizr) {
var dynamicCSSContainer = "audiovideo-dynamic";

2
static/js/services/videowaiter.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(["underscore"], function(_) {
return ["$window", function($window) {

2
static/js/services/visibility.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define(['visibly'], function(visibly) {
// Visibility
return [function() {

2
static/js/services/webrtc.js

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
"use strict";
define([
'mediastream/webrtc'
], function(WebRTC) {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save