ECOM-4904 Move the program editor backbone app to Studio (#12962)

This commit is contained in:
Simon Chen
2016-07-19 19:09:51 -04:00
committed by GitHub
parent 7745e7cdf7
commit 1d768cde7a
65 changed files with 3283 additions and 108 deletions

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