Skip to content

theCrag/thecrag-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published