Files
edx-platform/cms/static/js/programs/utils/api_config.js
2016-08-08 15:04:06 -04:00

21 lines
494 B
JavaScript

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;
}
);