Skip to content

Instantly share code, notes, and snippets.

Keybase proof

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:

@mczepiel
mczepiel / indent.js
Last active December 17, 2015 07:08
tree.reel contents, and a readme.md file with instructions
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;
@mczepiel
mczepiel / component.html
Created March 26, 2013 18:38 — forked from anonymous/component.html
Using promises as part of JSONP loading
<!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"}
},
@mczepiel
mczepiel / directed-event-handling.js
Created July 14, 2012 00:10
Montage Directed Event Handling
// 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