Guest User

Untitled

a guest
May 1st, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.     require.config({
  3.         paths: {
  4.             "jquery": "/content/lib/jquery-2.1.1.min",
  5.             "noty": "/content/lib/jquery.noty.packaged.min",
  6.             "$q": "/content/lib/q",
  7.             "notifier": "/content/js/notifier"
  8.         }
  9.     });
  10. })();
  11.  
  12. (function() {
  13.     require(["jquery", "noty", "$q", "notifier"],
  14.         function ($, noty, $q, notifier) {
  15.             $("#btn").click(function (){
  16.                 var n = new notifier();
  17.                 n.showSuccessMessage('Success');
  18.             });
  19.         });
  20. })();
Advertisement
Add Comment
Please, Sign In to add comment