Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
oatkiller edited this page Sep 13, 2010 · 1 revision

qname adds a namespace to a string for use in objects.

(function () {

// 'http://oatlab.com/oatlib/v2:::my_property_name'
var my_property_name = o.qname('my_property_name');

// this won't collide with any other scripts
document.body[my_property_name] = 'my data';

})();
Clone this wiki locally