diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/help/console.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/help/console.js')
-rw-r--r-- | includes/js/dojox/help/console.js | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/includes/js/dojox/help/console.js b/includes/js/dojox/help/console.js deleted file mode 100644 index 8474a5a..0000000 --- a/includes/js/dojox/help/console.js +++ /dev/null @@ -1,80 +0,0 @@ -if(!dojo._hasResource["dojox.help.console"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.help.console"] = true; -dojo.provide("dojox.help.console"); -dojo.require("dojox.help._base"); - -dojo.mixin(dojox.help, { - _plainText: function(str){ - return str.replace(/(<[^>]*>|&[^;]{2,6};)/g, ''); - }, - _displayLocated: function(located){ - var obj = {}; - dojo.forEach(located, function(item){ obj[item[0]] = (+dojo.isFF) ? { toString: function(){ return "Click to view"; }, item: item[1] } : item[1]; }); - console.dir(obj); - }, - _displayHelp: function(loading, obj){ - if(loading){ - var message = "Help for: " + obj.name; - console.log(message); - var underline = ""; - for(var i = 0; i < message.length; i++){ - underline += "="; - } - console.log(underline); - }else if(!obj){ - console.log("No documentation for this object"); - }else{ - var anything = false; - for(var attribute in obj){ - var value = obj[attribute]; - if(attribute == "returns" && obj.type != "Function" && obj.type != "Constructor"){ - continue; - } - if(value && (!dojo.isArray(value) || value.length)){ - anything = true; - console.info(attribute.toUpperCase()); - value = dojo.isString(value) ? dojox.help._plainText(value) : value; - if(attribute == "returns"){ - var returns = dojo.map(value.types || [], "return item.title;").join("|"); - if(value.summary){ - if(returns){ - returns += ": "; - } - returns += dojox.help._plainText(value.summary); - } - console.log(returns || "Uknown"); - }else if(attribute == "parameters"){ - for(var j = 0, parameter; parameter = value[j]; j++){ - var type = dojo.map(parameter.types, "return item.title").join("|"); - console.log((type) ? (parameter.name + ": " + type) : parameter.name); - var summary = ""; - if(parameter.optional){ - summary += "Optional. "; - } - if(parameter.repating){ - summary += "Repeating. "; - } - summary += dojox.help._plainText(parameter.summary); - if(summary){ - summary = " - " + summary; - for(var k = 0; k < parameter.name.length; k++){ - summary = " " + summary; - } - console.log(summary); - } - } - }else{ - console.log(value); - } - } - } - if(!anything){ - console.log("No documentation for this object"); - } - } - } -}); - -dojox.help.init(); - -} |