Posted By

almazom on 02/04/11


Tagged

CoffeeScript Gritter


Versions (?)

javascript logging. CoffeeScript, Gritter.


 / Published in: JavaScript
 

  1. #CoffeeScript code
  2. gl = (msg,title) ->
  3. title = ' ' if !title
  4. $.gritter.add({title: title,time: 3000, text: msg});
  5.  
  6. gerror = (msg) ->
  7. $.gritter.add({title: 'ERROR',sticky: true, image: '/images/error.png', text: msg});

Report this snippet  

You need to login to post a comment.