Skip to content

Instantly share code, notes, and snippets.

View marianoviola's full-sized avatar

Mariano Viola marianoviola

View GitHub Profile
@marianoviola
marianoviola / cs-jq-plugin-template.coffee
Created August 9, 2016 12:59 — forked from rjz/cs-jq-plugin-template.coffee
Coffeescript jQuery Plugin Class Template
# A class-based template for jQuery plugins in Coffeescript
#
# $('.target').myPlugin({ paramA: 'not-foo' });
# $('.target').myPlugin('myMethod', 'Hello, world');
#
# Check out Alan Hogan's original jQuery plugin template:
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template
#
(($, window) ->