Skip to content

Instantly share code, notes, and snippets.

View billybonks's full-sized avatar
💭
qq

Sebastien Stettler billybonks

💭
qq
View GitHub Profile
// ==========================================================================
// Project: Ember EasyForm
// Copyright: Copyright 2013 DockYard, LLC. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
// Version: 1.0.0.beta.1
// Copyright: Copyright 2013 DockYard, LLC. and contributors.
// ==========================================================================
// Project: Ember EasyForm
// Copyright: Copyright 2013 DockYard, LLC. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
// Version: 1.0.0.beta.1
// Copyright: Copyright 2013 DockYard, LLC. and contributors.
@billybonks
billybonks / gist:4249218
Created December 10, 2012 08:05
Dot Opperator Interprater
for(field in task.DisplayFields){
var path = task.DisplayFields[field].split('.');
var property = task;
for(subpath in path){
property = property[path[subpath]]
}
DisplayAssociativeArray[task.DisplayFields[field]] = property;
}
@billybonks
billybonks / gist:4126084
Created November 21, 2012 17:06
this function will merge two objects dependent on a path
/*
given that
ObjectA = sourceObject
ObjectB = destinationObject
it will fill Object b with the field in Object A
ObjectA{