jmuheim/base

View on GitHub
app/assets/javascripts/example_script.coffee

Summary

Maintainability
Test Coverage
# This is an example file. Use it as reference when creating your own script classes.

class App.ExampleScript
  constructor: (el) ->
    @$el = $(el) # Always pass an element to the constructor and make it available as a jQuery selector!