Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A javascript wrapper around theCrag's API
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.md
package.json

README.md

theCrag's javascript API wrapper

  • Request an object, and some properties and a callback
  • traverse the node struture, using jQuery defered a lot?
  • A local cache with dirty bit
  • Live sync or, manual sync

Basic lookup

tC(13342327).get(function(node){
    alert(node.data.title); // return Layabout
});

Chaining

tC(13342327).parent().get(function(node){
    alert(node.data.title); // return Illusion Buttress
});

Not yet implemented:

tC.climber(12345)
tC.climber('brendan', 'friends')


// Setting attributes
tC(12345).set('title', 'this node sucks');
tC(12345).set({'title': 'this node sucks'});
Something went wrong with that request. Please try again.