Commit 870e3522 authored by Randall Leeds's avatar Randall Leeds

much saner prototype syntax

I think I got confused once when I did `x = foo` and it was being
shared between instances. Silly me, it should have been `x: foo`.

This CoffeeScript thing...
parent 4a09c7c9
class Hypothesis extends Annotator
# Annotator state variables.
this::bucket = -1 # * The index of the bucket shown in the summary view
this::detail = false # * Whether the viewer shows a summary or detail listing
this::hash = -1 # * cheap UUID :cake:
this::cache = {} # * object cache
this::visible = false # * Whether the sidebar is visible
# Plugin configuration
options:
Heatmap: {}
......@@ -14,6 +7,13 @@ class Hypothesis extends Annotator
showViewPermissionsCheckbox: false,
userString: (user) -> user.replace(/^acct:(.+)@(.+)$/, '$1 on $2')
# Internal state
bucket: -1 # * The index of the bucket shown in the summary view
detail: false # * Whether the viewer shows a summary or detail listing
hash: -1 # * cheap UUID :cake:
cache: {} # * object cache
visible: false # * Whether the sidebar is visible
this.$inject = ['$rootElement', '$scope', '$compile', '$http']
constructor: (@element, @scope, @compile, @http) ->
super @element, @options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment