- 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,
- Right click an element in the Inspector and select “Break on…” to add a breakpoint
- // https://c.disquscdn.com/next/c0d8fa9/home/js/utils/embed.js
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
— Expand Paste to full width of browser