Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2013 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5945093 to your computer and use it in GitHub Desktop.
Save anonymous/5945093 to your computer and use it in GitHub Desktop.
%element{:name => "kern-js"}
%template
#kerning.js-tool{"data-action" => "kerning"}
#scale.js-tool{"data-action" => "scale"}
#rotation.js-tool{"data-action" => "rotation"}
#leading.js-tool{"data-action" => "leading"}
#position.js-tool{"data-action" => "position"}
#opacity.js-tool{"data-action" => "opacity"}
:coffee
console.log 'this is', @
if @ isnt window
@register
prototype:
readyCallback: ->
@createShadowRoot().appendChild(template.content.cloneNode(true));
console.log 'tools registered'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment