{:uriI"Ôfile:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/base/mixins/connectivity.coffee?type=application/javascript&pipeline=self&id=323ff67abfbcd2a0110358a4c874beb77c069209b057d4bbf3167b5abb06aa9d:ET:load_pathI"?/Users/himn1/dev/rails/engines/loco/lib/assets/javascripts;T: filenameI"d/Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/base/mixins/connectivity.coffee;T: nameI""loco/base/mixins/connectivity;T:logical_pathI"*loco/base/mixins/connectivity.self.js;T:content_typeI"application/javascript;T: sourceI"K(function() { App.Mixins.Connectivity = (function() { function Connectivity() {} Connectivity.prototype.connectWith = function(data, opts) { var i, identity, len, ref; if (opts == null) { opts = {}; } if (data == null) { return null; } if (data.constructor.name === "Array") { ref = _.uniq(_.map(data, function(obj) { return obj.getIdentity(); })); for (i = 0, len = ref.length; i < len; i++) { identity = ref[i]; App.IdentityMap.addCollection(identity, { to: this }); if (opts.receiver != null) { this.receivers[identity] = opts.receiver; } } return; } if (opts.receiver != null) { this.receivers[data.toKey()] = opts.receiver; } return App.IdentityMap.connect(this, { "with": data }); }; Connectivity.prototype.receiverFor = function(data) { if (data.constructor.name === "String") { if (this.receivers[data] != null) { return this.receivers[data]; } else { return null; } } if (this.receivers[data.toKey()] != null) { return this.receivers[data.toKey()]; } return null; }; return Connectivity; })(); }).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"rfile-digest:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/base/mixins/connectivity.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"% œiÇ£gùöÍ% µ˜ltÈN¸7Puk`ˆ_Ð"Ö: lengthiK:dependencies_digest"%ÙcÍð* g.Æ4¯3:3e–4" ¤×ÉôV Ä&~:idI"E323ff67abfbcd2a0110358a4c874beb77c069209b057d4bbf3167b5abb06aa9d;F: mtimel+œ V