diff --git a/src/please.js b/src/please.js index aee7f11..f582327 100644 --- a/src/please.js +++ b/src/please.js @@ -522,12 +522,14 @@ Request.prototype = { init: function (name) { $.extend(this, $.Deferred()); - this.id = lastRequestId++; - this.name = name; - this.data = Array.prototype.slice.call(arguments); this.type = 'request'; - requests[this.id] = this; + if (name !== null) { + this.id = lastRequestId++; + this.name = name; + this.data = Array.prototype.slice.call(arguments); + requests[this.id] = this; + } }, /**