Sha256: 8d099c333d64c723da57b152a8caa78e9e5d215c2758f2f909209b71d0480a36
Contents?: true
Size: 1.69 KB
Versions: 1
Compression:
Stored size: 1.69 KB
Contents
I"»(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.Controllers.Main.Pages = (function(superClass) { extend(Pages, superClass); function Pages() { return Pages.__super__.constructor.apply(this, arguments); } Pages.prototype.index = function() { this.view = new App.Views.Main.Pages.ArticleList; this.view.render(); this.connectWith([App.Models.Article, App.Models.Article.Comment]); return App.Models.Article.get('all', { page: 1 }).then((function(_this) { return function(articles) { return _this.view.renderArticles(articles); }; })(this)); }; Pages.prototype.receivedSignal = function(signal, data) { switch (signal) { case 'Article published': return App.Models.Article.find({ id: data.id, abbr: true }, (function(_this) { return function(article) { return _this.view.renderNewArticle(article); }; })(this)); case 'Article updated': return this.view.updateArticle(data.id); case 'Article.Comment created': return this.view.commentsQuantityChangedForArticle(data.article_id, 1); case 'Article.Comment destroyed': return this.view.commentsQuantityChangedForArticle(data.article_id, -1); } }; return Pages; })(App.Controllers.Base); }).call(this); :ET
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loco-rails-0.0.1 | test/dummy/tmp/cache/assets/development/sprockets/v3.0/EQAqYHh0p0XjYAnUXAHQ6Zxc6a-xVTwCpMaYF6jyH1s.cache |