HTML-Dojo
view release on metacpan or search on metacpan
lib/HTML/Dojo/src.pm view on Meta::CPAN
return dojo.evalProp(ref.prop, ref.obj, create);
}
return null;
};
dojo.errorToString = function (exception) {
if (!dj_undef("message", exception)) {
return exception.message;
} else {
if (!dj_undef("description", exception)) {
return exception.description;
} else {
return exception;
}
}
};
dojo.raise = function (message, exception) {
if (exception) {
message = message + ": " + dojo.errorToString(exception);
} else {
message = dojo.errorToString(message);
}
try {
if (djConfig.isDebug) {
dojo.hostenv.println("FATAL exception raised: " + message);
}
}
catch (e) {
}
throw exception || Error(message);
};
dojo.debug = function () {
};
dojo.debugShallow = function (obj) {
};
dojo.profile = {start:function () {
}, end:function () {
}, stop:function () {
}, dump:function () {
}};
function dj_eval(scriptFragment) {
return dj_global.eval ? dj_global.eval(scriptFragment) : eval(scriptFragment);
}
dojo.unimplemented = function (funcname, extra) {
var message = "'" + funcname + "' not implemented";
if (extra != null) {
message += " " + extra;
}
dojo.raise(message);
};
dojo.deprecated = function (behaviour, extra, removal) {
var message = "DEPRECATED: " + behaviour;
if (extra) {
message += " " + extra;
}
if (removal) {
message += " -- will be removed in version: " + removal;
}
dojo.debug(message);
};
dojo.render = (function () {
function vscaffold(prefs, names) {
var tmp = {capable:false, support:{builtin:false, plugin:false}, prefixes:prefs};
for (var i = 0; i < names.length; i++) {
tmp[names[i]] = false;
}
return tmp;
}
return {name:"", ver:dojo.version, os:{win:false, linux:false, osx:false}, html:vscaffold(["html"], ["ie", "opera", "khtml", "safari", "moz"]), svg:vscaffold(["svg"], ["corel", "adobe", "batik"]), vml:vscaffold(["vml"], ["ie"]), swf:vscaffold(["Swf"...
})();
dojo.hostenv = (function () {
var config = {isDebug:false, allowQueryConfig:false, baseScriptUri:"", baseRelativePath:"", libraryScriptUri:"", iePreventClobber:false, ieClobberMinimal:true, preventBackButtonFix:true, delayMozLoadingFix:false, searchIds:[], parseWidgets:true};
if (typeof djConfig == "undefined") {
djConfig = config;
} else {
for (var option in config) {
if (typeof djConfig[option] == "undefined") {
djConfig[option] = config[option];
}
}
}
return {name_:"(unset)", version_:"(unset)", getName:function () {
return this.name_;
}, getVersion:function () {
return this.version_;
}, getText:function (uri) {
dojo.unimplemented("getText", "uri=" + uri);
}};
})();
dojo.hostenv.getBaseScriptUri = function () {
if (djConfig.baseScriptUri.length) {
return djConfig.baseScriptUri;
}
var uri = new String(djConfig.libraryScriptUri || djConfig.baseRelativePath);
if (!uri) {
dojo.raise("Nothing returned by getLibraryScriptUri(): " + uri);
}
var lastslash = uri.lastIndexOf("/");
djConfig.baseScriptUri = djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
__CPAN_FILE__ src/dom.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.dom"]], definePackage:function (dojo) {
dojo.provide("dojo.dom");
dojo.dom.ELEMENT_NODE = 1;
dojo.dom.ATTRIBUTE_NODE = 2;
dojo.dom.TEXT_NODE = 3;
dojo.dom.CDATA_SECTION_NODE = 4;
dojo.dom.ENTITY_REFERENCE_NODE = 5;
lib/HTML/Dojo/src.pm view on Meta::CPAN
return dojo.evalProp(ref.prop, ref.obj, create);
}
return null;
};
dojo.errorToString = function (exception) {
if (!dj_undef("message", exception)) {
return exception.message;
} else {
if (!dj_undef("description", exception)) {
return exception.description;
} else {
return exception;
}
}
};
dojo.raise = function (message, exception) {
if (exception) {
message = message + ": " + dojo.errorToString(exception);
} else {
message = dojo.errorToString(message);
}
try {
if (djConfig.isDebug) {
dojo.hostenv.println("FATAL exception raised: " + message);
}
}
catch (e) {
}
throw exception || Error(message);
};
dojo.debug = function () {
};
dojo.debugShallow = function (obj) {
};
dojo.profile = {start:function () {
}, end:function () {
}, stop:function () {
}, dump:function () {
}};
function dj_eval(scriptFragment) {
return dj_global.eval ? dj_global.eval(scriptFragment) : eval(scriptFragment);
}
dojo.unimplemented = function (funcname, extra) {
var message = "'" + funcname + "' not implemented";
if (extra != null) {
message += " " + extra;
}
dojo.raise(message);
};
dojo.deprecated = function (behaviour, extra, removal) {
var message = "DEPRECATED: " + behaviour;
if (extra) {
message += " " + extra;
}
if (removal) {
message += " -- will be removed in version: " + removal;
}
dojo.debug(message);
};
dojo.render = (function () {
function vscaffold(prefs, names) {
var tmp = {capable:false, support:{builtin:false, plugin:false}, prefixes:prefs};
for (var i = 0; i < names.length; i++) {
tmp[names[i]] = false;
}
return tmp;
}
return {name:"", ver:dojo.version, os:{win:false, linux:false, osx:false}, html:vscaffold(["html"], ["ie", "opera", "khtml", "safari", "moz"]), svg:vscaffold(["svg"], ["corel", "adobe", "batik"]), vml:vscaffold(["vml"], ["ie"]), swf:vscaffold(["Swf...
})();
dojo.hostenv = (function () {
var config = {isDebug:false, allowQueryConfig:false, baseScriptUri:"", baseRelativePath:"", libraryScriptUri:"", iePreventClobber:false, ieClobberMinimal:true, preventBackButtonFix:true, delayMozLoadingFix:false, searchIds:[], parseWidgets:true};
if (typeof djConfig == "undefined") {
djConfig = config;
} else {
for (var option in config) {
if (typeof djConfig[option] == "undefined") {
djConfig[option] = config[option];
}
}
}
return {name_:"(unset)", version_:"(unset)", getName:function () {
return this.name_;
}, getVersion:function () {
return this.version_;
}, getText:function (uri) {
dojo.unimplemented("getText", "uri=" + uri);
}};
})();
dojo.hostenv.getBaseScriptUri = function () {
if (djConfig.baseScriptUri.length) {
return djConfig.baseScriptUri;
}
var uri = new String(djConfig.libraryScriptUri || djConfig.baseRelativePath);
if (!uri) {
dojo.raise("Nothing returned by getLibraryScriptUri(): " + uri);
}
var lastslash = uri.lastIndexOf("/");
djConfig.baseScriptUri = djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
}});
__CPAN_FILE__ src/experimental.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.experimental");
dojo.experimental = function (moduleName, extra) {
var message = "EXPERIMENTAL: " + moduleName;
message += " -- Not yet ready for use. APIs subject to change without notice.";
if (extra) {
message += " " + extra;
( run in 0.763 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )