Last active
March 23, 2016 23:46
-
-
Save nicoespeon/99a2d9914afd2160ab6a to your computer and use it in GitHub Desktop.
Blog - Plop — a micro-generator to ease your daily life - calendars parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Module from "core/module"; | |
import _ from "lodash"; | |
// IMPORT MODULE FILES | |
import Model from "./calendars.model"; | |
const namespace = "calendars"; | |
Model = Model.extend( { namespace: namespace } ); | |
export default Module.extend( { | |
initialize() { | |
_.defaults( this.options, { isDisplayed: true } ); | |
}, | |
onStart() { | |
this.ready(); | |
}, | |
onReady() { | |
// Do something when module is considered as ready | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment