nooline/nooline

View on GitHub
common/js/nooline/models/content-snippet/disable-editing.js

Summary

Maintainability
A
2 hrs
Test Coverage
// Boilerplate for AMD and CJS isomorphism.
define('common/js/nooline/models/content-snippet/disable-editing',
  [],
  function () {

  var N = this.Nooline;

  /**
   * disableEditing
   * No more words for you!
   *
   * Disables the ability to edit the content of a particular ContentSnippet.
   *
   * @return  None.
   */
  N.Models.ContentSnippet.prototype.disableEditing = function () {

    this.view.setOptions('editable', false);

  };

  return 'models/content-snippet/disable-editing';

});