material-framework icon indicating copy to clipboard operation
material-framework copied to clipboard

Make Material() return something useful

Open nt1m opened this issue 10 years ago • 3 comments

@kCenk , @PalmerAL Suggestions ?

nt1m avatar Feb 25 '15 15:02 nt1m

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

PalmerAL avatar Feb 25 '15 16:02 PalmerAL

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

nt1m avatar Feb 25 '15 17:02 nt1m

Dunno tbh nothing pops into my mind right now

kCenk avatar Feb 25 '15 20:02 kCenk