-
-
Save dbalexandre/13d3e4b75d07f90a661e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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