CoffeeScript and jQuery plugin authoring
问题 I have a habit of making questions unnecessarily long by including off-topic and useless rants. I'll try not to do it this time. I apologize for the lack of a better and more descriptive title. So, here's a CoffeeScript code. (($, window, document) -> # Conventionally 'private' variables _name = 'aPlugin' _defaults = property: 'value' _debug = (args) -> console.log args return # Plugin constructor Plugin = (element, options) -> @element = element @options = $.extend true, {}, _defaults,