Skip to content

Instantly share code, notes, and snippets.

@marcusbesjes
Created September 2, 2015 12:30
Show Gist options
  • Select an option

  • Save marcusbesjes/3f196a902960078c22b5 to your computer and use it in GitHub Desktop.

Select an option

Save marcusbesjes/3f196a902960078c22b5 to your computer and use it in GitHub Desktop.

Revisions

  1. marcusbesjes created this gist Sep 2, 2015.
    20 changes: 20 additions & 0 deletions helloWorld.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    var packagejson = {
    "dependencies": {
    "vjs": "git+ssh://git@github.com/vigour-io/vjs#develop"
    }
    }

    var Observable = require('vjs/lib/observable')

    var list = new Observable()

    list.on('$property', function(meta){
    console.log('a property was added or removed!', meta)
    })

    list.set({
    key: 'value',
    otherkey: {
    blux: true
    }
    })