-
Notifications
You must be signed in to change notification settings - Fork 11
Events
maximebf edited this page Sep 14, 2010
·
1 revision
Fired after a namespace has been created
Properties:
- identifier: the namespace identifier that has been created
Namespace.addEventListener('create', function(event) {
alert(event.identifier);
});
Fired after a namespace element has been imported
Properties:
- identifier: the namespace identifier that has been imported
Namespace.addEventListener('use', function(event) {
alert(event.identifier);
});
Fired after a namespace has been included (before the callback is called when async).
Properties:
- identifier: the namespace identifier
- uri: the file uri
- async: whether the file has been loaded asynchronously
- callback: the callback to call on success
Namespace.addEventListener('include', function(event) {
alert(event.identifier);
alert(event.uri);
alert(event.async);
alert(event.callback);
});
Fired when include()
fails to load the file (fired before the error callback is called when async).
Properties:
- identifier: the namespace identifier
- uri: the file uri
- async: whether the file has been loaded asynchronously
- callback: the callback to call on success
Namespace.addEventListener('include', function(event) {
alert(event.identifier);
alert(event.uri);
alert(event.async);
alert(event.callback);
});
Fired when provide()
is called.
Properties:
- identifier: the namespace identifier
Namespace.addEventListener('provide', function(event) {
alert(event.identifier);
});