not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
1004 B

define(["sugar-web/env", "sugar-web/activity/activity"], function (env, activity) {
// Manipulate the DOM only when it is ready.
requirejs(['domReady!'], function (doc) {
//
// Initialize the python environment.
compiler = RapydScript.create_embedded_compiler()
// One event bus for all
event_bus = riot.observable()
// Setup custom script parser
riot.parsers.js.Rapyd = function(js, options) {
return (compiler.compile(js))
}
// Mount web components
riot.compile(function() {
// here tags are compiled and riot.mount works synchronously
var tags = riot.mount('*')
try {
activity.setup()
setTimeout(function(){
event_bus.trigger('activity-ready', activity)
}, 100)
}
catch(err) {
// No datastore
event_bus.trigger('activity-not-ready', err)
}
})
});
});