Properties:
Name | Type | Description |
---|---|---|
version |
string | The version of the BP library. |
globalObject |
object | The global JavaScript object. |
Namespaces
Members
(static) provide
Create and return a new bp.core.Namespace object. This method
expects a dot-notated name and creates it as a global variable in
JavaScript.
Examples
bp.provide("some.namespace");
// some.namespace => {}
bp.provide("some.namespace").use(function() {
this.stuff = 'awesome!';
});
// some.namespace.stuff => 'awesome!'