Skip to content

Commit

Permalink
a few in-passing code cleanups of TrackMetaData.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed May 8, 2012
1 parent 4252679 commit 675c8d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/Model/TrackMetaData.js
Expand Up @@ -11,7 +11,6 @@ dojo.declare( 'JBrowse.Model.TrackMetaData', null,
* @param args.trackConfigs {Array} array of track configuration
*/
constructor: function( args ) {

// set up our facet name discrimination: what facets we will
// actually provide search on
var non_facet_attrs = this.getIdentityAttributes();
Expand Down Expand Up @@ -278,7 +277,7 @@ dojo.declare( 'JBrowse.Model.TrackMetaData', null,
},

isItem: function(item) {
return typeof item == 'object' && typeof item[name] == 'string';
return typeof item == 'object' && typeof item.label == 'string';
},

isItemLoaded: function() {
Expand Down Expand Up @@ -398,7 +397,8 @@ dojo.declare( 'JBrowse.Model.TrackMetaData', null,
return this.getValue(i,'key',undefined);
},
getLabelAttributes: function(i) {
return ['key']; },
return ['key'];
},

// dojo.data.api.Identity support
getIdentityAttributes: function() {
Expand Down

0 comments on commit 675c8d0

Please sign in to comment.