Skip to content

Commit

Permalink
Rename types to registry to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 1, 2016
1 parent 78bd9e8 commit a97b4ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/plugins/visualizations/charts/static/app.js
Expand Up @@ -6,14 +6,14 @@ define( [ 'mvc/ui/ui-modal', 'mvc/ui/ui-portlet', 'mvc/ui/ui-misc', 'utils/utils
return Backbone.View.extend({
initialize: function( options ) {
var self = this;
require( [ 'remote/build/types' ], function( Types ) {
require( [ 'remote/build/registry' ], function( Registry ) {
Utils.get({
url : Galaxy.root + 'api/datasets/' + options.config.dataset_id,
cache : true,
success : function( dataset ) {
self.dataset = dataset;
self.types = {};
_.each( Types, function( type, type_id ) {
_.each( Registry, function( type, type_id ) {
if ( !type.datatypes || type.datatypes.indexOf( dataset.file_ext ) != -1 ) {
self.types[ type_id ] = type;
}
Expand Down

0 comments on commit a97b4ba

Please sign in to comment.