This file contains 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
tree = { | |
a: ['b', 'c', 'd'], | |
b: ['e', 'f'], | |
c: ['g', 'h'], | |
h: ['i', 'j', 'k'], | |
k: ['l'], | |
l: ['m', 'n'] | |
} | |
var _ = require('underscore'); |
This file contains 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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.registerTask('runTests', '', function() { | |
var done = this.async(); | |
grunt.util.spawn({ | |
cmd: 'node', | |
args: ['./js/tests/runner/tests.js'] | |
}, function(e, result) { |
This file contains 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
/* | |
TrafficCop | |
Author: Jim Cowart | |
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license) | |
Version 0.1.0 | |
*/ | |
(function($, undefined) { | |
var inProgress = {}; |
This file contains 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
(function (libraryNamespace, $, undefined) { | |
// private properties | |
var privateProperty = 'default private'; | |
// public properties | |
libraryNamespace.publicProperty = 'default public'; | |
// private methods | |
function updatePublicProperty(newPublic) { | |
this.publicProperty = newPublic || 'new public'; |
NewerOlder