From xap-commits-return-223-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Thu Aug 10 18:04:23 2006 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 12843 invoked from network); 10 Aug 2006 18:04:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 18:04:23 -0000 Received: (qmail 57584 invoked by uid 500); 10 Aug 2006 18:04:23 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 57558 invoked by uid 500); 10 Aug 2006 18:04:23 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 57549 invoked by uid 99); 10 Aug 2006 18:04:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 11:04:23 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 11:04:22 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id C57331A981A; Thu, 10 Aug 2006 11:03:56 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r430464 - /incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Date: Thu, 10 Aug 2006 18:03:56 -0000 To: xap-commits@incubator.apache.org From: mturyn@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060810180356.C57331A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: mturyn Date: Thu Aug 10 11:03:55 2006 New Revision: 430464 URL: http://svn.apache.org/viewvc?rev=430464&view=rev Log: Fixed a bug in determining whether an initial property were allowed for a widget---should look at the XAL version of the property name (e.g., "id" rather than "widgetId") because that's less likely to change between widgets and toolkits. Modified: incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Modified: incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js?rev=430464&r1=430463&r2=430464&view=diff ============================================================================== --- incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js (original) +++ incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Thu Aug 10 11:03:55 2006 @@ -302,12 +302,14 @@ name = mapper[xalName] ; } //Doesn't do much here, but for subclasses: - if( this.allowsInitialProperty(name)){ - // What about the value? If necessary we could introduce - // an object holding a map-to name and a callback used - // to get the right value.... + if( this.allowsInitialProperty(xalName)){ + // What about the value? var xalValue = arrAttributes[ii].nodeValue ; //...but we'll just do a little bit here: + //If necessary we could introduce + // an object holding a map-to name and a callback used + // to get the right value, we could easily map from on to the other + // in complicated ways, but not here, not now: var value = xalValue ; if (xalValue == "true"){ value = true ;