Skip to content

Instantly share code, notes, and snippets.

View wasbazi's full-sized avatar

Avi wasbazi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wasbazi on github.
  • I am wasbazi (https://keybase.io/wasbazi) on keybase.
  • I have a public key ASBMkoxN8ZT17oUildWq7iXnRN0PhRJbXk4HQA3aiQiwVQo

To claim this, I am signing this object:

@wasbazi
wasbazi / CQM.js
Last active January 4, 2016 12:29
// env.js
_documentSetter: function(document){
this.document = document;
// if this is a document model it will have the watch function,
// if not it will throw an error and everything dies, but I doubt
// a non doc-model will be passed
if (this._constrainedProductsWatch) {
this._constrainedProductsWatch.remove();
}
@wasbazi
wasbazi / gist:7953890
Last active December 31, 2015 07:28
Window vs. Template scope in Meteor
<head>
<title>MeteorGame</title>
</head>
<body>
{{> game}}
</body>
<template name="game">
<h1>Hello World!</h1>