From 44a31f3ed9e940aacbb9d8d1207367ad716ffd61 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 5 Mar 2015 15:36:48 -0800 Subject: [PATCH] Remove unneeded function --- js/options.js | 1 + js/views/phone-input-view.js | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/js/options.js b/js/options.js index 7d7ba174..ba774c26 100644 --- a/js/options.js +++ b/js/options.js @@ -28,6 +28,7 @@ $(function() { var phoneView = new Whisper.PhoneInputView({el: $('#phone-number-input')}); + phoneView.render(); if (textsecure.registration.isDone()) { $('#complete-number').text(textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0]);//TODO: no $('#setup-complete').show().addClass('in'); diff --git a/js/views/phone-input-view.js b/js/views/phone-input-view.js index 46b9fa77..f3fa4c7c 100644 --- a/js/views/phone-input-view.js +++ b/js/views/phone-input-view.js @@ -21,10 +21,6 @@ var Whisper = Whisper || {}; tagName: 'div', className: 'phone-input', template: $('#phone-number').html(), - initialize: function() { - this.render(); - }, - render: function() { this.$el.html($(Mustache.render(this.template))); this.$el.find('input.number').intlTelInput();