• Strophe
  • Punjab
  • Palaver
  • Speeqe
  • Stanziq
Strophe Logo
  • Login
  • Preferences
  • Help/Guide
  • Register
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #80 (new defect)

Opened 5 weeks ago

addConnectionPlugin fix

Reported by: Liam Owned by: Jack
Priority: minor Milestone:
Component: strophejs Version:
Keywords: plugin Cc:

Description

addConnectionPlugin should really create the plugin constructor:

    addConnectionPlugin: function(name, ptype)
    {
        var ctor = function() {};
        ctor.prototype = ptype;
        Strophe._connectionPlugins[name] = ctor;
    }

Plugin instantiation in Connection constructor:

    for (var k in Strophe._connectionPlugins) {
        if (Strophe._connectionPlugins.hasOwnProperty(k)) {
            this[k] = new Strophe._connectionPlugins[k]();
	    this[k].init(this);
        }
    }
Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11.5
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/