Difference between revisions 1479921 and 1480320 on nlwiktionary

/** See talk page for details **/
 
//JsMwApi documentation is at http://en.wiktionary.org/wiki/User_talk:Conrad.Irwin/Api.js
function JsMwApi (api_url, request_type) {
 
	if (!api_url) 
	{
		if (typeof(wgEnableAPI) === 'undefined' || wgEnableAPI == false)
(contracted; show full)	{
		var value = "";
		for (var name in storage)
		{
			value += '&' + encodeURIComponent(name) + "=" + encodeURIComponent(storage[name]);
		}
 
		
setCS.cookie('preferences' + context, value)
	}
 
	// Load storage from the cookie.
	// NOTE: If you wish to update the cookie format, both loading and storing
	// must continue to work for 30 days.
	function updateStorage ()
	{
		var value = getC$.cookie('preferences' + context, value) || '';
		var pairs = value.split('&');
 
		for (var i=1; i < pairs.length; i++)
		{
			var val = pairs[i].split('=');
 
			if (storage[val[0]] === val[1])
(contracted; show full)function concatObject(obj) {
  str='';
  for(prop in obj)
  {
    str+=prop + " value :"+ obj[prop]+"\n";
  }
  return(str);
}