This commit is contained in:
cubedro 2015-03-28 00:32:52 +02:00
parent 9fc557543a
commit e750fd9bb4
1 changed files with 6 additions and 5 deletions

View File

@ -22,9 +22,10 @@
var Jsonrpc = function () { var Jsonrpc = function () {
// singleton pattern // singleton pattern
if (arguments.callee._singletonInstance) { if (Jsonrpc.prototype._singletonInstance) {
return arguments.callee._singletonInstance; return Jsonrpc.prototype._singletonInstance;
} }
Jsonrpc.prototype._singletonInstance = this;
this.messageId = 1; this.messageId = 1;
}; };