Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NAMESPACE.categories.baseUri = '/categories';
- NAMESPACE.categories.getUri = function(options)
- {
- options = options || {};
- var uri = [NAMESPACE.categories.baseUri];
- if(options.id)
- {
- uri.push(options.id);
- }
- if(options.action)
- {
- uri.push(options.action);
- }
- if(options.format)
- {
- uri.push('?format=' + options.format);
- }
- return uri.join('/');
- }
- function ControlValuePair(Id, Value)
- {
- this.Id = Id;
- this.Value = Value;
- }
- function CreateCollection(ClassName)
- {
- var obj=new Array();
- eval("var t=new "+ClassName+"()");
- for(_item in t)
- {
- eval("obj."+_item+"=t."+_item);
- }
- return obj;
- }
- function ValuePairsCollection()
- {
- this.Container="";
- this.Add=function(obj)
- {
- this.push(obj);
- }
- }
Add Comment
Please, Sign In to add comment