diff 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
line wrap: on
line diff
--- a/lightstring.js
+++ b/lightstring.js
@@ -321,7 +321,7 @@ Lightstring.Connection.prototype = {
         this[name][method] = plugin.methods[method].bind(this);
 
       if (plugin.init)
-        plugin.init();
+        plugin.init.apply(this);
     }
   },
   /**