Mercurial > eldonilo > lightstring
comparison lightstring.js @ 76:0b8e7ca19f83
Plugins init functions are now called with Lightstring.Connection scope.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Mon, 06 Feb 2012 18:02:02 +0100 |
parents | 5dbf93cef55d |
children | 7854e036a572 |
comparison
equal
deleted
inserted
replaced
75:619f3ffa125a | 76:0b8e7ca19f83 |
---|---|
319 this[name] = {}; | 319 this[name] = {}; |
320 for (var method in plugin.methods) | 320 for (var method in plugin.methods) |
321 this[name][method] = plugin.methods[method].bind(this); | 321 this[name][method] = plugin.methods[method].bind(this); |
322 | 322 |
323 if (plugin.init) | 323 if (plugin.init) |
324 plugin.init(); | 324 plugin.init.apply(this); |
325 } | 325 } |
326 }, | 326 }, |
327 /** | 327 /** |
328 * @function Emits an event. | 328 * @function Emits an event. |
329 * @param {String} aName The event name. | 329 * @param {String} aName The event name. |