Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/x.js Secret

Created March 19, 2013 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/272143fc07d6fd80aa5a to your computer and use it in GitHub Desktop.
Save Raynos/272143fc07d6fd80aa5a to your computer and use it in GitHub Desktop.
function (x) {
return {
status: x.online ? "online" : "offline"
}
}
function (x) { return x.online }
function (curr, changed) {
return { online: changed.online }
}
function (ev) {
return { online: ev.target.checked }
}
function (x) {
return x.value.type === "colingo-feed::course~members" &&
x.eventType === "add"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment