@@ -1,5 +1,5 @@
-(function (window) {
- window.WsRpc = function () {
+(function (exports) {
+ exports.WsRpc = function () {
var ctx = this
this._requests = {}
/**
@@ -104,4 +104,4 @@
})
return ret
}
-})(window)
+})(typeof exports === 'undefined' ? window : exports) // Register directly to window (this)