botanjs/src/System/utils/DataKey.js
raw ยท 385 bytes
(function(){
var ns = __namespace( "System.utils" );
var IKey = ns[ NS_INVOKE ]( "IKey" );
/** @type {typeof System.utils.DataKey} */
var DataKey;
DataKey = function ( name, value )
{
IKey.call(
this
, "data-" + name
, value ? encodeURIComponent( String( value ) ) : ""
);
};
__extends( DataKey, IKey );
ns[ NS_EXPORT ]( EX_CLASS, "DataKey", DataKey );
})();