Inspect element. Click it. The selected element is now $0 in the javascript console
$0.viewModel
$0.viewModel.enabled
$0.viewModel.enabled.binding
$0.viewModel.enabled.value
/* | |
This is for configuring the hc-06 bluetooth chip to work with Johnny-Five javascript robotics library. | |
Might also work with the hc-05. | |
Author: Glen Arrowsmith (@garrows) | |
*/ | |
#define ROBOT_NAME "RandomBot" |
var gulp = require('gulp'), | |
compress = require('gulp-uglify'), | |
stylus = require('gulp-stylus'), | |
concat = require('gulp-concat'), | |
browserify = require('gulp-browserify'), | |
livereload = require('gulp-livereload'); | |
var liveReloadServer = livereload(); | |
gulp.task('styles', function() { |
MyObject.prototype.on = function (eventName, callback) { | |
if (this.eventListeners[eventName] == undefined) { | |
this.eventListeners[eventName] = []; | |
} | |
if (typeof callback == "function") { | |
this.eventListeners[eventName].push(callback); | |
} else { | |
throw "can not subscribe with a non function callback"; | |
} | |
} |