cardUtils.js

From disqus.com, 2 Months ago, written in Plain Text, viewed 3 times.
URL https://pastebin.freepbx.org/view/bd31b572 Embed
Download Paste or View Raw
  1. define('home/utils/cardUtils',[
  2.     'core/bus',
  3.     'home/utils/navigationUtils',
  4.     'home/utils/sidebarUtils',
  5. ], function (
  6.     Bus,
  7.     NavigationUtils,
  8.     sidebarUtils
  9. ) {
  10.     'use strict';
  11.  
  12.     Bus.on({
  13.         'uiCallback:showProfile': function (username) {
  14.             var userFragment = '/by/' + username + '/';
  15.             if (sidebarUtils.isSidebar())
  16.                 window.open(userFragment);
  17.             else
  18.                 NavigationUtils.navigate(userFragment, { trigger: true });
  19.         },
  20.     });
  21. });
  22.  
  23. // https://c.disquscdn.com/next/c0d8fa9/home/js/utils/cardUtils.js

Replies to cardUtils.js rss

Title Name Language When
embed.js disqus.com text 2 Months ago.

Reply to "cardUtils.js"

Here you can reply to the paste above