{:uriI"file:///Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/services/profile-answer-tool-service.js?type=application/javascript&pipeline=self&id=46c491ebf70d1875639fe6fef53edeee299a598168305978da90fe45380e6e66:ET:load_pathI"@/Users/ericcf/work/social_networking/app/assets/javascripts;T: filenameI"z/Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/services/profile-answer-tool-service.js;T: nameI";social_networking/services/profile-answer-tool-service;T:logical_pathI"Csocial_networking/services/profile-answer-tool-service.self.js;T:content_typeI"application/javascript;T: sourceI"1;(function() { 'use strict'; function ProfileAnswerToolService(focus) { function ProfileAnswerTool() {} ProfileAnswerTool.prototype.MODES = { BROWSE: 0, ENTRY: 1 }; ProfileAnswerTool.prototype.edit = function(answer) { this.setModel(answer); this.setMode(this.MODES.ENTRY); focus('new-answer'); }; ProfileAnswerTool.prototype.getMode = function() { return this._mode; }; ProfileAnswerTool.prototype.setMode = function(mode) { this._mode = mode; }; ProfileAnswerTool.prototype.setModel = function(answer) { this._answerModel.id = answer.id; this._answerModel.profile_id = answer.profile_id; this._answerModel.profile_question_id = answer.profile_question_id; this._answerModel.answer_text = answer.answer_text; }; ProfileAnswerTool.prototype.getModel = function() { return this._answerModel; }; ProfileAnswerTool.prototype.setTab = function(name) { this._tab = name; }; ProfileAnswerTool.prototype.getTab = function() { return this._tab; }; ProfileAnswerTool.prototype._mode = ProfileAnswerTool.prototype.MODES.BROWSE; ProfileAnswerTool.prototype._currentFilter = {}; ProfileAnswerTool.prototype._answerModel = {}; ProfileAnswerTool.prototype._tab = 'all'; return new ProfileAnswerTool(); } angular.module('socialNetworking.services') .service('answerTool', ['focus', ProfileAnswerToolService]); })(); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/services/profile-answer-tool-service.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%tO=־u5^&b`u!~': lengthi1:dependencies_digest"%hWk59JqVyl,=;:idI"E46c491ebf70d1875639fe6fef53edeee299a598168305978da90fe45380e6e66;F: mtimel+a3W