gitana / gitana-javascript-driver

Cloud CMS JavaScript Driver Library
https://www.cloudcms.com
Apache License 2.0
11 stars 10 forks source link

Add generate QName function to driver #2

Closed gitana closed 13 years ago

gitana commented 13 years ago

To take advantage of the new REST API

gitana commented 13 years ago

Implemented.

branch.helpers().generateQName(obj, function(qname) {

alert("generated qname is: " + qname);

});

The obj to pass in contains either "title" or "description" and looks like: { "title": "the title", "description": "the description" }