A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
function nestCollection(model, attributeName, nestedCollection) { | |
//setup nested references | |
for (var i = 0; i < nestedCollection.length; i++) { | |
model.attributes[attributeName][i] = nestedCollection.at(i).attributes; | |
} | |
//create empty arrays if none | |
nestedCollection.bind('add', function (initiative) { | |
if (!model.get(attributeName)) { | |
model.attributes[attributeName] = []; |
function findValues(obj, key){ | |
return findValuesHelper(obj, key, []); | |
} | |
function findValuesHelper(obj, key, list) { | |
if (!obj) return list; | |
if (obj instanceof Array) { | |
for (var i in obj) { | |
list = list.concat(findValuesHelper(obj[i], key, [])); | |
} |