{:uriI"¦file://app/assets/javascripts/views/articles/form.coffee?type=application/javascript&pipeline=self&id=0b202fd88695ba6cf4b5cb722153558fd1cce99fbf6187e9766c23d338f27f77:ET:load_pathI"app/assets/javascripts;T: filenameI"6app/assets/javascripts/views/articles/form.coffee;T: nameI"views/articles/form;T:logical_pathI" views/articles/form.self.js;T:content_typeI"application/javascript;T: sourceI"z(function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; App.Views.Articles.Form = (function(superClass) { extend(Form, superClass); function Form(opts) { if (opts == null) { opts = {}; } Form.__super__.constructor.call(this, opts); this.article = null; } Form.prototype.renderForm = function(article) { var form; this.article = article; this.connectWith(this.article); form = new App.UI.Form({ "for": this.article }); return form.render(); }; Form.prototype.renderComments = function(comments) { var comment, i, len, results; if (comments.length === 0) { $("#comments").append('

No comments.

'); return; } results = []; for (i = 0, len = comments.length; i < len; i++) { comment = comments[i]; results.push($("#comments").append(JST["templates/comments/comment"]({ comment: comment, isAdmin: true }))); } return results; }; Form.prototype.receivedSignal = function(signal, data) { switch (signal) { case "updating": return console.log("TODO: App.Views.Posts.Form -> updating..."); case "updated": return console.log(this.article.changes()); } }; return Form; })(App.Views.Base); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"Dfile-digest://app/assets/javascripts/views/articles/form.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%_„Œ+Læxz©§¾ ¾çMœ!‚"ˆhÌû¹ï/P’y: lengthiz:dependencies_digest"%ŽpîÔ)Ò2dŠÓG‘O±¶Þ$Aáß ùnþ2:idI"E0b202fd88695ba6cf4b5cb722153558fd1cce99fbf6187e9766c23d338f27f77;F: mtimel+(üV