Skip to content

About

A javascript wrapper around theCrag's API

Resources

Stars

19 stars

Watchers

13 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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'});

About

A javascript wrapper around theCrag's API

Resources

Stars

19 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages