GitHub PullRequestReviewCommentEvent at 2014-06-02 17:48:53
Repository: adapt_authoring
Actor: dennis-learningpool
Payload: {"comment":{"url":"https://api.github.com/repos/adaptlearning/adapt_authoring/pulls/comments/13297246","id":13297246,"diff_hunk":"@@ -0,0 +1,38 @@\n+define(function(require) {\n+  \n+  var Origin = require('coreJS/app/origin');\n+  var ProjectModel = require('coreJS/project/models/projectModel');\n+  var ProjectDetailView = require('coreJS/project/views/projectDetailView');\n+\n+  Origin.on('navigation:user:logout', function() {\n+    Origin.router.navigate('#/user/logout');\n+  });\n+\n+  Origin.on('navigation:profile:toggle', function() {\n+    console.log('Should show profile');\n+  });\n+\n+  Origin.on('router:project', function(location, subLocation, action) {\n+\n+    switch (location) {\n+      case 'new':\n+        var project = new ProjectModel();\n+        Origin.router.createView(ProjectDetailView, {model: project});\n+        console.log('new loaded');\n+        break;\n+      case 'edit':\n+        var projectModel = new ProjectModel({_id: id});\n+        projectModel.fetch({\n+          success: function() {\n+            this.createView(ProjectDetailView, {model: projectModel});\n+          }\n+        });\n+        break;\n+      case 'view':\n+        console.log('Should view project???');\n+        break;","path":"frontend/src/core/project/project.js","position":33,"original_position":33,"commit_id":"0c0638300314bd749a754da22f90a68f2d8c5fc2","original_commit_id":"cb6361d9d154d62a4be72b7cac07b066151f1051","user":{"login":"dennis-learningpool","id":1692639,"avatar_url":"https://avatars.githubusercontent.com/u/1692639?","gravatar_id":"6d94840af6a80746e4af47e0bd5a4ffb","url":"https://api.github.com/users/dennis-learningpool","html_url":"https://github.com/dennis-learningpool","followers_url":"https://api.github.com/users/dennis-learningpool/followers","following_url":"https://api.github.com/users/dennis-learningpool/following{/other_user}","gists_url":"https://api.github.com/users/dennis-learningpool/gists{/gist_id}","starred_url":"https://api.github.com/users/dennis-learningpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennis-learningpool/subscriptions","organizations_url":"https://api.github.com/users/dennis-learningpool/orgs","repos_url":"https://api.github.com/users/dennis-learningpool/repos","events_url":"https://api.github.com/users/dennis-learningpool/events{/privacy}","received_events_url":"https://api.github.com/users/dennis-learningpool/received_events","type":"User","site_admin":false},"body":"should have a default?","created_at":"2014-06-02T17:48:53Z","updated_at":"2014-06-02T17:48:53Z","html_url":"https://github.com/adaptlearning/adapt_authoring/pull/344#discussion_r13297246","pull_request_url":"https://api.github.com/repos/adaptlearning/adapt_authoring/pulls/344","_links":{"self":{"href":"https://api.github.com/repos/adaptlearning/adapt_authoring/pulls/comments/13297246"},"html":{"href":"https://github.com/adaptlearning/adapt_authoring/pull/344#discussion_r13297246"},"pull_request":{"href":"https://api.github.com/repos/adaptlearning/adapt_authoring/pulls/344"}}}}