Sha256: 6855b10fc3bb4853a81ebce5477d51654b24c2a74f11456981824e40d7482f82

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

$(function () {
  Handlebars.registerHelper('fetch', function (value, def) {
      return value || def;
  });

  $(document).on('swaggerBind', function(event) {
    event.preventDefault();

    if(!app.extensions) {
      return;
    }

    for(var ext in app.extensions) {
      $('#' + ext + '_content').prepend(HandlebarsTemplates['document']({document: app.extensions[ext]}));
    }

    DependencySwitcher.switchBind();
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apress-documentation-0.4.0 app/assets/javascripts/swagger_binder.js