I hereby claim:
- I am mczepiel on github.
- I am mczepiel (https://keybase.io/mczepiel) on keybase.
- I have a public key whose fingerprint is A21D D2B8 51F2 FE3F 6B0F 9C59 6EEC F6F2 D878 D7D9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var Montage = require("montage").Montage; | |
var Component = require("montage/ui/component").Component; | |
exports.Indent = Montage.create(Component, { | |
hasTemplate: { value: false }, | |
didCreate: { | |
value: function () { | |
this.depth = null; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>MFiddle</title> | |
<script type="text/montage-serialization">{ | |
"owner": { | |
"properties": { | |
"element": {"#": "component"} | |
}, |
// Directed event handling methods | |
// Optional identifier to help differentiate event targets | |
myElement.identifier = "foo"; | |
//listen during capture phase | |
myElement.addEventListener("mousedown", eventHandler, true); | |
// The following approaches are tried in this order: | |
eventHandler.captureFooMousedown(evt) //identifier specific handler, if identifier available |