   constructor: () ->
     @panel = $('<div></div>').attr(id: 'typeworks')
 
+    @features = {}
+
     for feature in TypeWorks.features
+      @features[feature.slug] = feature
+
       $("<a><span>#{ feature.title }</span></a>").
         attr(href: '#', title: feature.title, 'data-feature': feature.slug).
         addClass('toggle').

    if index > -1
      @activeFeatures.splice(index, 1)
    else
      @activeFeatures.push(feature)

    @update()

    return


    { slug: 'smcp', title: 'Small capitals' },
    { slug: 'c2sc', title: 'Small capitals from capitals' },

    { slug: 'lnum', title: 'Lining figures', exclude: [ 'onum' ] },
    { slug: 'onum', title: 'Old-style figures', exclude: [ 'lnum' ] },

    { slug: 'pnum', title: 'Proportional figures', exclude: [ 'tnum' ] },
    { slug: 'tnum', title: 'Tabular figures', exclude: [ 'pnum' ] },

    { slug: 'frac', title: 'Fractions', exclude: [ 'afrc' ] },
    { slug: 'afrc', title: 'Alternative fractions', exclude: [ 'frac' ] },

    { slug: 'zero', title: 'Slashed zero' },
    { slug: 'nalt', title: 'Alternate annotation forms' },
