ECOM-4904 Move the program editor backbone app to Studio (#12962)
This commit is contained in:
21
cms/static/js/programs/utils/api_config.js
Normal file
21
cms/static/js/programs/utils/api_config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
define([
|
||||
'js/programs/models/api_config_model'
|
||||
],
|
||||
function( ApiConfigModel ) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* This js module implements the Singleton pattern for an instance
|
||||
* of the ApiConfigModel Backbone model. It returns the same shared
|
||||
* instance of that model anywhere it is required.
|
||||
*/
|
||||
var instance;
|
||||
|
||||
if (instance === undefined) {
|
||||
instance = new ApiConfigModel();
|
||||
}
|
||||
|
||||
return instance;
|
||||
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user