Skip to content

Instantly share code, notes, and snippets.

@yurfuwa-chan
yurfuwa-chan / jquery.myplugin.coffee
Created March 7, 2012 12:18 — forked from jimeh/jquery.myplugin.coffee
Example jQuery plugin written in CoffeeScript, and the resulting compiled JavaScript file.
$.fn.extend
test:(options)->
self = $.fn.test
opts = $.extend {}, self.default_options, options
$.extend $.fn.test,
default_options:
version: '1.0'