Advertisement
fernandezekiel

why is it empty?

Feb 10th, 2014
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function ( $ ) {
  2.    
  3.     $.fn.ticket = function(options) {
  4.         var opts = $.extend( {}, $.fn.ticket.defaults, options );
  5.         console.log(opts);
  6.         //console.log returns an empty object
  7.         return this.each(function() {
  8.      
  9.         });
  10.     };
  11.    
  12.     $.fn.ticket.defaults = {
  13.         url: "api.mysystem.com/tickets",
  14.         key: "89321kldska"
  15.     };
  16. };
  17.  
  18. }( jQuery ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement