whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: don't redefine mounted method
Date Thu, 11 Jan 2018 21:24:32 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new bce0fef  don't redefine mounted method
bce0fef is described below

commit bce0fefbca3f4dedadb239eccdf2846a2b90be0a
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Jan 11 16:23:46 2018 -0500

    don't redefine mounted method
---
 www/project/icla/views/main.js.rb | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/www/project/icla/views/main.js.rb b/www/project/icla/views/main.js.rb
index 9b52716..87f970b 100644
--- a/www/project/icla/views/main.js.rb
+++ b/www/project/icla/views/main.js.rb
@@ -20,8 +20,8 @@ class Main < Vue
     Server.data = @@data
   end
 
-  # set view based on properties
   def mounted()
+    # set view based on properties
     if @@view == 'interview'
       @view = Interview
     elsif @@view == 'discuss'
@@ -31,6 +31,9 @@ class Main < Vue
     else
       @view = Invite
     end
+
+    # export navigation method on the client
+    Main.navigate = self.navigate
   end
 
   # Another navigation means in support of the demo
@@ -38,9 +41,4 @@ class Main < Vue
     @view = view
     window.scrollTo(0, 0)
   end
-
-  # export navigation method on the client
-  def mounted()
-    Main.navigate = self.navigate
-  end
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message