Sha256: 97d7be458f5c911ceae40f95b2889e454dcc9d672c625ab5b7ad29886fbe618f
Contents?: true
Size: 739 Bytes
Versions: 25
Compression:
Stored size: 739 Bytes
Contents
//= require social_stream/callback SocialStream.Action = (function(SS, $, undefined){ var callback = new SS.Callback(); var updateFollow = function(action){ var follow = action.follow; if (!follow) { return; } followForms(action).replaceWith(follow.form); followSentences(action).replaceWith(follow.sentence); }; var followForms = function(action) { return $('.follow_form-' + action.activity_object.id); }; var followSentences = function(action) { return $('.follow_sentence-' + action.activity_object.id); }; callback.register('update', updateFollow); return callback.extend({ followForms: followForms, followSentences: followSentences }); })(SocialStream, jQuery);
Version data entries
25 entries across 25 versions & 2 rubygems