Commit 3eb3668b authored by JC Brand's avatar JC Brand

Small fixes

parent 94830c85
(function (root, factory) { (function (root, factory) {
if (typeof define === 'function' && define.amd) { define(["converse-core", "strophe.vcard"], factory);
// AMD. Register as a module called "myplugin"
define("converse-spoilers", ["converse"], factory);
} else {
// Browser globals. If you're not using a module loader such as require.js,
// then this line below executes. Make sure that your plugin's <script> tag
// appears after the one from converse.js.
factory(converse);
}
}(this, function (converse) { }(this, function (converse) {
// Commonly used utilities and variables can be found under the "env" // Commonly used utilities and variables can be found under the "env"
...@@ -17,8 +9,7 @@ ...@@ -17,8 +9,7 @@
$msg = converse.env.$msg, $msg = converse.env.$msg,
$pres = converse.env.$pres, $pres = converse.env.$pres,
$build = converse.env.$build, $build = converse.env.$build,
b64_sha1 = converse.env.b64_sha1; b64_sha1 = converse.env.b64_sha1,
$ = converse.env.jQuery,
_ = converse.env._, _ = converse.env._,
moment = converse.env.moment; moment = converse.env.moment;
...@@ -52,8 +43,7 @@ ...@@ -52,8 +43,7 @@
/* From the `_converse` object you can get any configuration /* From the `_converse` object you can get any configuration
* options that the user might have passed in via * options that the user might have passed in via
* `converse.initialize`. These values are stored in the * `converse.initialize`.
* "user_settings" attribute.
* *
* You can also specify new configuration settings for this * You can also specify new configuration settings for this
* plugin, or override the default values of existing * plugin, or override the default values of existing
...@@ -70,11 +60,8 @@ ...@@ -70,11 +60,8 @@
* converse.initialize({ * converse.initialize({
* "initialize_message": "My plugin has been initialized" * "initialize_message": "My plugin has been initialized"
* }); * });
*
* And the configuration setting is then available via the
* `user_settings` attribute:
*/ */
alert(this._converse.user_settings.initialize_message); alert(this._converse.initialize_message);
/* Besides `_converse.api.settings.update`, there is also a /* Besides `_converse.api.settings.update`, there is also a
* `_converse.api.promises.add` method, which allows you to * `_converse.api.promises.add` method, which allows you to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment