Bläddra i källkod

Remove #BBB code for the deprecated `prebind` option

replaced with the `authentication` option
JC Brand 8 år sedan
förälder
incheckning
33cc2c3cf5
1 ändrade filer med 1 tillägg och 5 borttagningar
  1. 1 5
      src/converse-core.js

+ 1 - 5
src/converse-core.js

@@ -20,8 +20,7 @@
             "backbone.overview",
     ], factory);
 }(this, function (sizzle, $, _, polyfill, locales, utils, moment, Strophe, pluggable) {
-    /*
-     * Cannot use this due to Safari bug.
+    /* Cannot use this due to Safari bug.
      * See https://github.com/jcbrand/converse.js/issues/196
      */
     // "use strict";
@@ -262,9 +261,6 @@
         // Allow only whitelisted configuration attributes to be overwritten
         _.assignIn(this, _.pick(settings, _.keys(this.default_settings)));
 
-        // BBB
-        if (this.prebind === true) { this.authentication = _converse.PREBIND; }
-
         if (this.authentication === _converse.ANONYMOUS) {
             if (this.auto_login && !this.jid) {
                 throw new Error("Config Error: you need to provide the server's " +