embed.js

From disqus.com, 2 Months ago, written in Plain Text, viewed 3 times. This paste is a reply to cardUtils.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/6e200cc9 Embed
Download Paste or View Raw
  1.  
  2.  
  3. 1
  4.  
  5. define('home/utils/embed',[
  6.  
  7. 2
  8.  
  9.     'home/models/Session',
  10.  
  11. 3
  12.  
  13. ], function (
  14.  
  15. 4
  16.  
  17.     Session
  18.  
  19. 5
  20.  
  21. ) {
  22.  
  23. 6
  24.  
  25.     'use strict';
  26.  
  27. 7
  28.  
  29.  
  30. 8
  31.  
  32.     // Called via embed callback, configured in template
  33.  
  34. 9
  35.  
  36.     // that loads embed
  37.  
  38. 10
  39.  
  40.     var onEmbedComment = function () {
  41.  
  42. 11
  43.  
  44.         var user = Session.get().user;
  45.  
  46. 12
  47.  
  48.         user.set({
  49.  
  50. 13
  51.  
  52.             numPosts: user.get('numPosts') + 1,
  53.  
  54. 14
  55.  
  56.         });
  57.  
  58. 15
  59.  
  60.     };
  61.  
  62. 16
  63.  
  64.  
  65. 17
  66.  
  67.     var onEmbedLoaded = function () {};
  68.  
  69. 18
  70.  
  71.  
  72. 19
  73.  
  74.     return {
  75.  
  76. 20
  77.  
  78.         onEmbedComment: onEmbedComment,
  79.  
  80.     Right click an element in the Inspector and select “Break on…” to add a breakpoint
  81.  
  82. // https://c.disquscdn.com/next/c0d8fa9/home/js/utils/embed.js

Replies to embed.js rss

Title Name Language When
FollowingForumCollection.js disqus.com javascript 2 Months ago.

Reply to "embed.js"

Here you can reply to the paste above