Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

Theme functions are now using Drupal.theme directly instead of declaring themselves in Drupal.theme.prototype where some workaround code was needed to make Drupal.theme() behave as intended.

Drupal 7

Drupal.theme.prototype.myThemeFunction = function (options) {
  var markup = '';
  return markup;
};

Drupal 8

Drupal.theme.myThemeFunction = function (options) {
  var markup = '';
  return markup;
};
Impacts: 
Module developers