Use consistent boiler plate throughout js files
This commit is contained in:
		
					parent
					
						
							
								f89cf890df
							
						
					
				
			
			
				commit
				
					
						2ee34343a8
					
				
			
		
					 15 changed files with 25 additions and 40 deletions
				
			
		| 
						 | 
					@ -15,7 +15,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
  'use strict';
 | 
					  'use strict';
 | 
				
			||||||
 | 
					 | 
				
			||||||
   window.Whisper = window.Whisper || {};
 | 
					   window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   // TODO: Factor out private and group subclasses of Conversation
 | 
					   // TODO: Factor out private and group subclasses of Conversation
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					 | 
				
			||||||
    window.Whisper = window.Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var Message  = Backbone.Model.extend({
 | 
					    var Message  = Backbone.Model.extend({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,10 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.AttachmentPreviewView = Whisper.View.extend({
 | 
					    Whisper.AttachmentPreviewView = Whisper.View.extend({
 | 
				
			||||||
        className: 'attachment-preview',
 | 
					        className: 'attachment-preview',
 | 
				
			||||||
        template: $('#attachment-preview').html(),
 | 
					        template: $('#attachment-preview').html(),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,11 +13,9 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
    var Whisper = Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // list of conversations, showing user/group and last message sent
 | 
					    // list of conversations, showing user/group and last message sent
 | 
				
			||||||
    Whisper.ConversationListItemView = Whisper.View.extend({
 | 
					    Whisper.ConversationListItemView = Whisper.View.extend({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,23 +13,20 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
  'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Whisper.ConversationListView = Whisper.ListView.extend({
 | 
					    Whisper.ConversationListView = Whisper.ListView.extend({
 | 
				
			||||||
    tagName: 'div',
 | 
					        tagName: 'div',
 | 
				
			||||||
    itemView: Whisper.ConversationListItemView,
 | 
					        itemView: Whisper.ConversationListItemView,
 | 
				
			||||||
 | 
					        events: {
 | 
				
			||||||
    events: {
 | 
					            'click .contact': 'select',
 | 
				
			||||||
      'click .contact': 'select',
 | 
					        },
 | 
				
			||||||
    },
 | 
					        select: function(e) {
 | 
				
			||||||
 | 
					            var target = $(e.target).closest('.contact');
 | 
				
			||||||
    select: function(e) {
 | 
					            target.siblings().removeClass('selected');
 | 
				
			||||||
      var target = $(e.target).closest('.contact');
 | 
					            return false;
 | 
				
			||||||
      target.siblings().removeClass('selected');
 | 
					        }
 | 
				
			||||||
      return false;
 | 
					    });
 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
  });
 | 
					 | 
				
			||||||
})();
 | 
					})();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,9 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.FileSizeToast = Whisper.ToastView.extend({
 | 
					    Whisper.FileSizeToast = Whisper.ToastView.extend({
 | 
				
			||||||
        template: $('#file-size-modal').html()
 | 
					        template: $('#file-size-modal').html()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					 | 
				
			||||||
    window.Whisper = window.Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.KeyVerificationView = Whisper.View.extend({
 | 
					    Whisper.KeyVerificationView = Whisper.View.extend({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,9 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
    * Generic list view that watches a given collection, wraps its members in
 | 
					    * Generic list view that watches a given collection, wraps its members in
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					 | 
				
			||||||
    window.Whisper = window.Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.MessageDetailView = Whisper.View.extend({
 | 
					    Whisper.MessageDetailView = Whisper.View.extend({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,9 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.MessageListView = Whisper.ListView.extend({
 | 
					    Whisper.MessageListView = Whisper.ListView.extend({
 | 
				
			||||||
        tagName: 'ul',
 | 
					        tagName: 'ul',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					 | 
				
			||||||
    window.Whisper = window.Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var ErrorView = Backbone.View.extend({
 | 
					    var ErrorView = Backbone.View.extend({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,9 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
    var Whisper = Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var ContactsTypeahead = Backbone.TypeaheadCollection.extend({
 | 
					    var ContactsTypeahead = Backbone.TypeaheadCollection.extend({
 | 
				
			||||||
        typeaheadAttributes: [
 | 
					        typeaheadAttributes: [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					 | 
				
			||||||
    window.Whisper = window.Whisper || {};
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.NewGroupUpdateView = Whisper.View.extend({
 | 
					    Whisper.NewGroupUpdateView = Whisper.View.extend({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,10 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.PhoneInputView = Whisper.View.extend({
 | 
					    Whisper.PhoneInputView = Whisper.View.extend({
 | 
				
			||||||
        tagName: 'div',
 | 
					        tagName: 'div',
 | 
				
			||||||
        className: 'phone-input',
 | 
					        className: 'phone-input',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,10 +13,10 @@
 | 
				
			||||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var Whisper = Whisper || {};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
    'use strict';
 | 
					    'use strict';
 | 
				
			||||||
 | 
					    window.Whisper = window.Whisper || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Whisper.ToastView = Whisper.View.extend({
 | 
					    Whisper.ToastView = Whisper.View.extend({
 | 
				
			||||||
        className: 'toast',
 | 
					        className: 'toast',
 | 
				
			||||||
        initialize: function() {
 | 
					        initialize: function() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue