Skip to content

Instantly share code, notes, and snippets.

@dbalexandre
Created August 20, 2014 19:27
Show Gist options
  • Save dbalexandre/13d3e4b75d07f90a661e to your computer and use it in GitHub Desktop.
Save dbalexandre/13d3e4b75d07f90a661e to your computer and use it in GitHub Desktop.
modulejs.define('lib/notify', ['toastr'], function (options) {
var options;
var init = function (options) {
options = $.extend(true, {
foo: "bar"
}, options);
};
var success = function (message) {
toastr.success(message);
};
var warning = function (message) {
toastr.warning(message);
};
var error = function (message) {
toastr.error(message);
};
return {
success: success,
warning: warning,
error: error
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment