nt1m / material-framework

[Unmaintained] An easy to use material design based framework.
http://nt1m.github.io/material-framework
MIT License
388 stars 86 forks source link

Make Material() return something useful #159

Open nt1m opened 9 years ago

nt1m commented 9 years ago

@kCenk , @PalmerAL Suggestions ?

PalmerAL commented 9 years ago

I think that material() should return the modules that were initialized. For example, you could do:

var md = new Material({modules: ["Responsive", "SideMenu"]});
md.Theme.toggle(element);

nt1m commented 9 years ago

@PalmerAL Yeah, that could work, but what about material itself ? var md = new Material(); What would md alone return ?

kCenk commented 9 years ago

Dunno tbh nothing pops into my mind right now