{I" class:ETI"BundledAsset;FI"logical_path;TI">social_networking/services/profile-answer-tool-service.js;FI" pathname;TI"‰/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/services/profile-answer-tool-service.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+˘żUI" length;Ti1I" digest;TI"%c4e9e2d8916b96760c8d131f5f815414;FI" source;TI"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]); })(); ;TI"required_assets_digest;TI"%6b63c687b3e064e9309a1903e8b39c23;FI" _version;TI"%069e88c06b889877799890854d7f4c40;F