Warning ... you are not declaring three variables. You declare only one ( deferred
). This will mean that others will leak into the global area (or reset the reference error in strict mode).
First you need to declare all three variables:
var deferred, user, campaigns;
deferred = user = campaigns = null;
, :
(function () {
"use strict";
var x = y = null;
}());
, var
( ... null
? undefined
):
var deferred = null,
campaigns = null,
user = null;