Skip to content

Instantly share code, notes, and snippets.

@ElemarJR
Created November 2, 2012 16:24
Show Gist options
  • Select an option

  • Save ElemarJR/4002431 to your computer and use it in GitHub Desktop.

Select an option

Save ElemarJR/4002431 to your computer and use it in GitHub Desktop.
define(['jquery', 'toastr'],
function ($, toastr) {
var
logJquery = function (message) {
var elem = $("<li>" + message + "</li>");
$("#output").append(elem);
},
logToastr = function (message) {
toastr.success(message);
},
log = function(message) {
logJquery(message);
logToastr(message);
};
return {
log : log,
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment