Loading psykal.dsland.org..

Extracto de [[Dojo and Spidermokey|http://www.bluishcoder.co.nz/2006/05/dojo-and-spidermonkey.html]]

----

//Dojo has a 'profile' system that allows you to create a customised 'dojo.js' which contains Dojo packages that you want preloaded. Anything not preloaded will be loaded automatically when required by the package system. One file that is needed by Dojo is 'hostenv' which needs to be tailored for a specific Javascript implementation. There is a hostenv_browser for web browsers, hotenv_spidermonkey for spidermonkey, hostenv_rhino, etc.

To set up a customised dojo.js, which does nothing but makes it specific for Spidermonkey, I created a 'buildscripts/profiles/spidermonkey.profile.js' file with the following contents://
{{{
var hostenvType="spidermonkey";
var dependencies=[];
load("getDependencyList.js");
}}}

//This is exactly the same as the 'minimal.profile.js' but with the hostenvType set to 'spidermonkey'. Once this is done a customised dojo.js system for Spidermonkey can be created with the following Ant command://

{{{
cd buildscripts
ant -Dprofile=spidermonkey -Ddocless=true release intern-strings
}}}

//The custom Dojo build for Spidermonkey is created at 'release/dojo'. You can test it with Spidermonkey with something like (user input in red)://
{{{
cd release/dojo
js
js> load("dojo.js");
js> dojo.version
0.2.2+ (3802)
}}}

//Many of Dojo's libraries are usable from Spidermonkey, including the package system and events. Here's an example demonstrating a usage of Dojo events from Spidermonkey://

{{{
cd release/dojo
js
js> load("dojo.js");
js> dojo.require("dojo.event.*");
js> var scheme = {}
js> scheme.jit = false
false
js> scheme.setJit = function(value) { this.jit = value }
js> var monitor = {}
js> monitor.watchJit = function() { print("Jit: " + scheme.jit) }
js> dojo.event.connect(scheme,"setJit",monitor,"watchJit")
[object Object]
js> scheme.setJit(true)
Jit: true
js> scheme.setJit(false)
Jit: false
}}}

----

Continua..
17.January.2007 18.January.2007 19.Enero.2007 1.Febrero.2007 20.Enero.2007 21.Enero.2007 21.Febrero.2007 22.Enero.2007 23.Febrero.2007 24.Enero.2007 31.Enero.2007 5.Febrero.2007 AdSense,.sabotaje Ajax Apagón.mundial BarraGoogle bpmscript ccTiddly ColorPalette Compilando.NSS.desde.las.fuentes Configure Contacto ContactoDWR ContactoOld Descargas diario Diario Dojo.Spidermonkey Enlaces File.upload GPL GWT.and.Jetty.Continuations Historial HTTP.Headers illan illán.Palao Instalación.y.compilación.de.nss.en.Ubuntu Integración.de.TittdlyWiki.con.php.y.mysql.. Java2Script LastJournal Legal Lupe Barebones Yapt v1.6 ॐ MozillaReleases MPTWStyleSheet Network.Security.Services NOSideBarTabs NOStyleSheet NSPR nss NSS OpenPMI OxadoPub Pentium4.a.8Ghz Principal Productos Proyectos RFC.3546 RFC4346 RFC4680 Rhino-Jetty Rhino-Jetty-Dojo-E4X:RSS-NSS-DWR Rhino.namespaces Servicios SiteUnavailable ssjs SSL StyleSheetColors supplemental.data syslinux TiddlyWiki TLS+AC UploadLog UploadOptions VisitorMap XPCOM 20 August 2007 Pruebas con Dojo Higher-Order Javascript Groovy Raytrace Calendar.js PreviewLink GAnalytics