embed.js

From disqus.com, 1 Year ago, written in JavaScript, viewed 3 times. This paste is a reply to AddModActivity.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/fd25fd40 Embed
Download Paste or View Raw
  1. define('home/utils/embed',[
  2.     'home/models/Session',
  3. ], function (
  4.     Session
  5. ) {
  6.     'use strict';
  7.  
  8.     // Called via embed callback, configured in template
  9.     // that loads embed
  10.     var onEmbedComment = function () {
  11.         var user = Session.get().user;
  12.         user.set({
  13.             numPosts: user.get('numPosts') + 1,
  14.         });
  15.     };
  16.  
  17.     var onEmbedLoaded = function () {};
  18.  
  19.     return {
  20.         onEmbedComment: onEmbedComment,
  21.         onEmbedLoaded: onEmbedLoaded,
  22.     };
  23. });
  24.  
  25. // https://c.disquscdn.com/next/82c6de3/home/js/utils/embed.js

Reply to "embed.js"

Here you can reply to the paste above