Skip to content

Instantly share code, notes, and snippets.

Justin Meyer justinbmeyer

Block or report user

Report or block justinbmeyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
justinbmeyer /
Last active Aug 29, 2015
CanJS Infrastructure Improvements

CanJS makes it easy to make better apps, faster. But, what about making a better CanJS faster?

Two weeks ago, the CanJS core team spent time improving our CanJS dev/test/build/doc infrastructure to make it easier to add new features faster.

Backwards Compatibility

One of the most difficult challenges in making improvements to a library is dealing with breaking changes. We want people using CanJS and to keep using it.

justinbmeyer / mmy.html
Created Mar 26, 2014
Make Model Year Example
View mmy.html
<div id="demo">
<div id='out'></div>
<script id="app" type="text/stache">
{{#if makes.isResolved}}
<select can-value="makeId">
<option>Select a Make</option>
{{#each makes}}
View weakmap.js
function Private() { = 'is private';
Private.prototype.somePrivateFunction = function() { = 'bar';
justinbmeyer /
Last active Aug 29, 2015
Service Endpoint Example Documentation


A task represents something to do. The task's service can CRUD tasks. Tasks can belong to other tasks and a single owner. Tasks have a belongs to and has many relationship with assignees.


Creates a task in the database.


Ryan, Thanks for your patience. I'm not trying to be willfully ignorant, but I'm still not sure what you are trying to say exactly. Twitter is the worst except for everything that's come before it. Let me try to break down your last tweet:

its not for lib authors who want to depend on other libs that aren't UMD or export to everything, that's my entire point.

What is "its"? I'm assuming you were referring to my previous tweet: "interop is possible for lib authors". So you mean:

Interop is not possible for lib authors who want to depend on other libs that:

  • are not umd, or
  • do not export to everything
justinbmeyer / dot.js
Last active Aug 29, 2015
DOT and NEW operator
View dot.js
var Person = function(n) {ame) { = name;
Person.prototype.isPerson = true;
var person = new Person('Smith');
var DOT = function(obj, prop) {
if( obj.hasOwnProperty(prop) ) {
return obj[prop];
View promise_queue.js
var promiseLock = (function(){
return function(func){
View dot.js
var Person = function(name) { = name;
Person.prototype.isPerson = true;
var person = new Person('Smith');
DOT(person, 'name'); //
DOT(person, 'isPerson'); //person.isPerson
You can’t perform that action at this time.