GitHub PullRequestReviewCommentEvent at 2014-03-11 23:40:17
Repository: gaia
Actor: hyunacho
Payload: {"comment":{"url":"https://api.github.com/repos/dmarcos/gaia/pulls/comments/10499975","id":10499975,"diff_hunk":"@@ -0,0 +1,269 @@\n+define(function(require, exports, module) {\n+'use strict';\n+\n+/**\n+ * Dependencies\n+ */\n+\n+var debug = require('debug')('controller:preview-gallery');\n+var bindAll = require('lib/bind-all');\n+var prepareBlob = require('lib/prepare-preview-blob');\n+var broadcast = require('lib/broadcast');\n+\n+/**\n+ * Exports\n+ */\n+\n+exports = module.exports = function(app) { return new PreviewGalleryController(app); };\n+module.exports.PreviewGalleryController = PreviewGalleryController;\n+\n+function PreviewGalleryController(app) {\n+  debug('initializing');\n+  bindAll(this);\n+  this.app = app;\n+  this.storage = this.app.storage;\n+  this.viewfinder = app.views.viewfinder;\n+  this.previewGallery = app.views.previewGallery;\n+  this.controls = app.views.controls;\n+  this.bindEvents();\n+  this.configure();\n+  debug('initialized');\n+}\n+\n+PreviewGalleryController.prototype.bindEvents = function() {\n+  this.previewGallery.on('click:gallery', this.galleryButtonClick);\n+  this.previewGallery.on('click:share', this.shareCurrentItem);\n+  this.previewGallery.on('click:delete', this.deleteCurrentItem);\n+  this.previewGallery.on('click:back', this.closePreview);\n+  this.previewGallery.on('previewItemChange', this.handleSwipe);","path":"apps/camera/js/controllers/preview-gallery.js","position":38,"original_position":38,"commit_id":"badc31ffbf0cff9a51a18eaa74973d8ca5590dcc","original_commit_id":"badc31ffbf0cff9a51a18eaa74973d8ca5590dcc","user":{"login":"hyunacho","id":6610506,"avatar_url":"https://gravatar.com/avatar/01342355159b3f0a6a22ee27fe013ac0?d=https%3A%2F%2Fidenticons.github.com%2F276cc57dd45aa0f08f6141e64554d8ce.png&r=x","gravatar_id":"01342355159b3f0a6a22ee27fe013ac0","url":"https://api.github.com/users/hyunacho","html_url":"https://github.com/hyunacho","followers_url":"https://api.github.com/users/hyunacho/followers","following_url":"https://api.github.com/users/hyunacho/following{/other_user}","gists_url":"https://api.github.com/users/hyunacho/gists{/gist_id}","starred_url":"https://api.github.com/users/hyunacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyunacho/subscriptions","organizations_url":"https://api.github.com/users/hyunacho/orgs","repos_url":"https://api.github.com/users/hyunacho/repos","events_url":"https://api.github.com/users/hyunacho/events{/privacy}","received_events_url":"https://api.github.com/users/hyunacho/received_events","type":"User","site_admin":false},"body":"I added the zoom handler like the following in preview-gallery view.\r\n\r\n  configure: function() {\r\n    this.frame = new MediaFrame(this.els.mediaFrame);\r\n    this.items = [];\r\n    addPanAndZoomHandlers(this.frame);\r\n  },","created_at":"2014-03-11T23:40:17Z","updated_at":"2014-03-11T23:40:17Z","html_url":"https://github.com/dmarcos/gaia/pull/66#discussion_r10499975","pull_request_url":"https://api.github.com/repos/dmarcos/gaia/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/dmarcos/gaia/pulls/comments/10499975"},"html":{"href":"https://github.com/dmarcos/gaia/pull/66#discussion_r10499975"},"pull_request":{"href":"https://api.github.com/repos/dmarcos/gaia/pulls/66"}}}}