'use strict';

//
// Expose the tooltip Pagelet.
//
require('./pagelet').extend({
  js: '{{brand}}/tooltip/base.js',
  css: '{{brand}}/tooltip/base.styl',
  view: '{{brand}}/tooltip/view.hbs',

  //
  // Tooltip defaults, the tooltip is toggled by clicking the generated hyperlink.
  // It will place the generated div below the hyperlink by default.
  //
  defaults: {
    placement: 'bottom',
    color: 'blue',
    trigger: 'mouseover',
    content: '',
  },

  /**
   * Called after Pagelet construction, enlist client-side JS tooltip,
   * It will be added to the loader pagelet `data.apps`.
   *
   * @api private
   */
  initialize: function initialize() {
    this.queue.enlist('loader', { apps: [ 'tooltip' ] });
  }
}).on(module);
@@ -714,16 +714,34 @@
 p' %5D %7D);
+%0A%0A    return this;
 %0A  %7D%0A%7D).

return self