Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB93D10E96 for ; Mon, 27 Jan 2014 19:37:10 +0000 (UTC) Received: (qmail 70590 invoked by uid 500); 27 Jan 2014 19:37:10 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 70537 invoked by uid 500); 27 Jan 2014 19:37:09 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 70529 invoked by uid 99); 27 Jan 2014 19:37:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 19:37:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of aharui@adobe.com) Received: from [207.46.163.181] (HELO na01-bn1-obe.outbound.protection.outlook.com) (207.46.163.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 19:37:03 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com (10.141.95.147) by BL2PR02MB500.namprd02.prod.outlook.com (10.141.95.147) with Microsoft SMTP Server (TLS) id 15.0.859.15; Mon, 27 Jan 2014 19:36:42 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) by BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) with mapi id 15.00.0859.020; Mon, 27 Jan 2014 19:36:42 +0000 From: Alex Harui To: "dev@flex.apache.org" Subject: [FlexJS] JSHint errors Thread-Topic: [FlexJS] JSHint errors Thread-Index: AQHPG5caeATmPz6qEEefgrUhyrktNg== Date: Mon, 27 Jan 2014 19:36:41 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [192.150.22.5] x-forefront-prvs: 0104247462 x-forefront-antispam-report: SFV:NSPM;SFS:(10019001)(6009001)(189002)(199002)(74876001)(90146001)(80976001)(76796001)(85306002)(74366001)(81816001)(69226001)(93516002)(83506001)(76786001)(56816005)(74706001)(47736001)(93136001)(19580395003)(50986001)(47976001)(83322001)(49866001)(81686001)(86362001)(81342001)(4396001)(77982001)(92566001)(59766001)(63696002)(74662001)(31966008)(87936001)(76482001)(54356001)(92726001)(79102001)(76176001)(81542001)(56776001)(83072002)(53806001)(51856001)(54316002)(87266001)(46102001)(85852003)(94316002)(65816001)(2656002)(36756003)(80022001)(66066001)(74502001)(47446002);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR02MB500;H:BL2PR02MB500.namprd02.prod.outlook.com;CLIP:192.150.22.5;FPR:;InfoNoRecordsMX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-ID: <4B194AB15990D043ACE2A9A60AD547AB@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-Virus-Checked: Checked by ClamAV on apache.org I just tried to clean up some of the JSHint warnings in the JS code we've written for FlexJS. The first thing I ran into was the way we declare uninitialized variables. An example is: /** * @expose * @type {string} */ org.apache.flex.binding.BindingBase.prototype.sourceID; The closure linter is ok with this, but JSHint complains, expecting an "=3D= " and an initial value. I can't find any documentation on what Closure says is the right thing to do with uninitialized variables. So, what should we do? Should we simply assign null or undefined? -Alex