Sha256: 9d1534bb3b2acb55d07d5b75c0d62d849dca6e5bb473ddeb9e79216a594fc292
Contents?: true
Size: 842 Bytes
Versions: 6
Compression:
Stored size: 842 Bytes
Contents
/** * @namespace WORKAREA.blogCommentPlaceholder */ WORKAREA.registerModule('blogCommentPlaceholder', (function () { 'use strict'; var replacePlaceholder = function (placeholder, content) { var $content = $(content); $(placeholder).replaceWith($content); WORKAREA.initModules($content); }, getContent = function (index, placeholder) { var url = $(placeholder).data('blogCommentPlaceholder'); $.get(url).done(_.partial(replacePlaceholder, placeholder)); }, /** * @method * @name init * @memberof WORKAREA.blogCommentPlaceholder */ init = function ($scope) { $('[data-blog-comment-placeholder]', $scope).each(getContent); }; return { init: init }; }()));
Version data entries
6 entries across 6 versions & 1 rubygems