This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign poll = fetch_module_data('some poll id') %} | |
/* | |
poll | |
id | |
question | |
options | |
results | |
... more ... | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global define:false, require:false */ | |
define(['./extend'], function (extend) { | |
'use strict'; | |
var _spaces = {}; | |
function namespace ( str ) { | |
var args = Array.prototype.slice.call(arguments,1) | |
,i = 0 | |
,base = window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<script src="js/lib/cajon/cajon.js" async="async"></script> | |
<script> | |
(function () { | |
window.require = { | |
baseUrl: "js" | |
,packages: [ | |
,{ name: 'blocks', location: 'lib/blocks/src' } | |
,{ name: 'yate', location: 'lib/yate/src'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var columnize = function ( count , colClass ) { | |
colClass = colClass || 'span'+(12/count) | |
var columns = [],div | |
// builds the columns | |
while (count--) { | |
div = document.createElement('div') | |
div.setAttribute('class', colClass ) | |
columns.push(div) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Block('foo', { | |
children: [new Block('bar', {})] | |
}); | |
Blocks.reference('bar').set('MyValue', true) | |
console.log(Blocks.reference('bar').get('MyValue')) // true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var anotherThing = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Header | |
* | |
* Bound Elements: | |
* - logo | |
* | |
*/ | |
;(function (dependencies){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['block/mixin','template/mixin', 'mediator/mixin'], | |
function ( BlockMixin, TemplateMixin, EventsMixin, undef ) { | |
var slice = Array.prototype.slice | |
,toString = Object.prototype.toString; | |
function typeOf (obj) { | |
return toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() | |
} |