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 4674417E95 for ; Sat, 20 Jun 2015 14:36:25 +0000 (UTC) Received: (qmail 64015 invoked by uid 500); 20 Jun 2015 14:36:24 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 63971 invoked by uid 500); 20 Jun 2015 14:36:24 -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 63960 invoked by uid 99); 20 Jun 2015 14:36:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 14:36:24 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of webdoublefx@hotmail.com designates 157.55.2.102 as permitted sender) Received: from [157.55.2.102] (HELO DUB004-OMC4S27.hotmail.com) (157.55.2.102) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 14:34:09 +0000 Received: from DUB118-W2 ([157.55.2.71]) by DUB004-OMC4S27.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sat, 20 Jun 2015 07:35:57 -0700 X-TMN: [Ppaq3Yd4fn44S/+qke2eK0RsH0ItnOyz] X-Originating-Email: [webdoublefx@hotmail.com] Message-ID: From: =?Windows-1252?B?RnLpZOlyaWMgVEhPTUFT?= To: "dev@flex.apache.org" Subject: RE: [FalconJX FlexJS] JQuery up and running, a nightmare but we now have 1.9 in AS Date: Sat, 20 Jun 2015 15:35:56 +0100 Importance: Normal In-Reply-To: References: ,,,,,,,,, ,,,,,, Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 20 Jun 2015 14:35:57.0246 (UTC) FILETIME=[6B824DE0:01D0AB66] X-Virus-Checked: Checked by ClamAV on apache.org > Great! Basically=2C there is a js-compile-config.xml that EXTERNC is told= =0A= > to use to generate a bunch of AS files from the .js files listed in=0A= > js-compile-config.xml. Then COMPC runs and uses compile-config.xml to=0A= > generate the SWC. If I were working on it=2C I would rename=0A= > closure-compiler folder to js-externs and create a similar jquery-externs= =0A= > folder with its own copies of the -config.xml files and the jquery.js=0A= > externs file in it. I think that the jquery compile-config.xml will need= =0A= > to list js.swc in the external-library-path.=0A= =0A= Ah ok=2C so=2C I was probably in the Mike way trying to create a TestExtern= alsJQueryCompile based on TestExternalsJSCompile ?=0A= Btw=2C I've seen TestExternJQuery but I didn't get where it was call from= =2C you know ?=0A= =0A= I will dig up your way.=0A= =0A= Thanks=2C=0A= Fr=E9d=E9ric THOMAS=0A= =0A= =0A= ----------------------------------------=0A= > From: aharui@adobe.com=0A= > To: dev@flex.apache.org=0A= > Subject: Re: [FalconJX FlexJS] JQuery up and running=2C a nightmare but w= e now have 1.9 in AS=0A= > Date: Sat=2C 20 Jun 2015 14:17:51 +0000=0A= >=0A= > Great! Basically=2C there is a js-compile-config.xml that EXTERNC is told= =0A= > to use to generate a bunch of AS files from the .js files listed in=0A= > js-compile-config.xml. Then COMPC runs and uses compile-config.xml to=0A= > generate the SWC. If I were working on it=2C I would rename=0A= > closure-compiler folder to js-externs and create a similar jquery-externs= =0A= > folder with its own copies of the -config.xml files and the jquery.js=0A= > externs file in it. I think that the jquery compile-config.xml will need= =0A= > to list js.swc in the external-library-path.=0A= >=0A= > Thanks=2C=0A= > -Alex=0A= >=0A= > On 6/20/15=2C 7:11 AM=2C "Fr=E9d=E9ric THOMAS" = wrote:=0A= >=0A= >>> Try wipe-all instead of clean-all?=0A= >>=0A= >>Work better thanks.=0A= >>=0A= >>I will have a look at how the things are done for js.swc=2C eventually=2C= try=0A= >>jquery.swc=0A= >>=0A= >>Fr=E9d=E9ric THOMAS=0A= >>=0A= >>=0A= >>----------------------------------------=0A= >>> From: aharui@adobe.com=0A= >>> To: dev@flex.apache.org=0A= >>> Subject: Re: [FalconJX FlexJS] JQuery up and running=2C a nightmare but= =0A= >>>we now have 1.9 in AS=0A= >>> Date: Sat=2C 20 Jun 2015 13:48:19 +0000=0A= >>>=0A= >>> Try wipe-all instead of clean-all?=0A= >>>=0A= >>> On 6/20/15=2C 6:41 AM=2C "Fr=E9d=E9ric THOMAS" wrote:=0A= >>>=0A= >>>>I did ant clean-all=2C all=0A= >>>>=0A= >>>>=0A= >>>>Fr=E9d=E9ric THOMAS=0A= >>>>=0A= >>>>=0A= >>>>----------------------------------------=0A= >>>>> From: aharui@adobe.com=0A= >>>>> To: dev@flex.apache.org=0A= >>>>> Subject: Re: [FalconJX FlexJS] JQuery up and running=2C a nightmare b= ut=0A= >>>>>we now have 1.9 in AS=0A= >>>>> Date: Sat=2C 20 Jun 2015 13:37:51 +0000=0A= >>>>>=0A= >>>>> Hmm. The CI build passed=2C so that test supposedly passed for me and= =0A= >>>>>the=0A= >>>>> CI server. Are you running that test all by itself? Did you re-build= =0A= >>>>>all=0A= >>>>> of the other projects (compiler=2C compiler.jx) first?=0A= >>>>>=0A= >>>>> -Alex=0A= >>>>>=0A= >>>>> On 6/20/15=2C 6:07 AM=2C "Fr=E9d=E9ric THOMAS" =0A= >>>>>wrote:=0A= >>>>>=0A= >>>>>>> OK=2C I got EXTERNC handling CLI and building a js.swc from Ant. Wi= ll=0A= >>>>>>> integrate it into the build over the weekend=2C but I think I am ou= t=0A= >>>>>>>of=0A= >>>>>>> Mike=92s way now.=0A= >>>>>>=0A= >>>>>>Is that why I've got this error building falcon ?=0A= >>>>>>=0A= >>>>>>Running=0A= >>>>>>org.apache.flex.compiler.internal.codegen.externals.TestExternalsJSCo= m=0A= >>>>>>pi=0A= >>>>>>le=0A= >>>>>>Tests run: 1=2C Failures: 0=2C Errors: 1=2C Skipped: 0=2C Time elapse= d: 0=2C035=0A= >>>>>>sec=0A= >>>>>>U:\sources\asf\flex\falcon\compiler.jx.tests\build.xml:64: Tests=0A= >>>>>>failed=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.actOnTestResul= t=0A= >>>>>>(J=0A= >>>>>>Un=0A= >>>>>>itTask.java:2150)=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT= a=0A= >>>>>>sk=0A= >>>>>>.j=0A= >>>>>>ava:1101)=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.oneJunitThread= (=0A= >>>>>>JU=0A= >>>>>>ni=0A= >>>>>>tTask.java:919)=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.runTestsInThre= a=0A= >>>>>>ds=0A= >>>>>>(J=0A= >>>>>>UnitTask.java:932)=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT= a=0A= >>>>>>sk=0A= >>>>>>.j=0A= >>>>>>ava:841)=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)= =0A= >>>>>> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)=0A= >>>>>> at=0A= >>>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= s=0A= >>>>>>or=0A= >>>>>>Im=0A= >>>>>>pl.java:43)=0A= >>>>>> at java.lang.reflect.Method.invoke(Method.java:601)=0A= >>>>>> at=0A= >>>>>>org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav= a=0A= >>>>>>:1=0A= >>>>>>06=0A= >>>>>>)=0A= >>>>>>=0A= >>>>>>=0A= >>>>>>=0A= >>>>>>Fr=E9d=E9ric THOMAS=0A= >>>>>>=0A= >>>>>>=0A= >>>>>>----------------------------------------=0A= >>>>>>> From: aharui@adobe.com=0A= >>>>>>> To: dev@flex.apache.org=0A= >>>>>>> Subject: Re: [FalconJX FlexJS] JQuery up and running=2C a nightmare= =0A= >>>>>>>but=0A= >>>>>>>we now have 1.9 in AS=0A= >>>>>>> Date: Sat=2C 20 Jun 2015 07:09:23 +0000=0A= >>>>>>>=0A= >>>>>>> OK=2C I got EXTERNC handling CLI and building a js.swc from Ant. Wi= ll=0A= >>>>>>> integrate it into the build over the weekend=2C but I think I am ou= t=0A= >>>>>>>of=0A= >>>>>>> Mike=92s way now. Then I will try Jquery externs in its own SWC unl= ess=0A= >>>>>>> someone beats me to it.=0A= >>>>>>>=0A= >>>>>>> -Alex=0A= >>>>>>>=0A= >>>>>>> On 6/18/15=2C 4:46 PM=2C "Alex Harui" wrote:=0A= >>>>>>>=0A= >>>>>>>>Mike=2C=0A= >>>>>>>>=0A= >>>>>>>>It looks like EXTERNC needs to handle command-line arguments=2C=0A= >>>>>>>>correct? I=0A= >>>>>>>>will try to get that working. I am planning on using the same=0A= >>>>>>>>Configurator that MXMLJSC and COMPJSC use unless you can think of a= =0A= >>>>>>>>reason=0A= >>>>>>>>not to.=0A= >>>>>>>>=0A= >>>>>>>>-Alex=0A= >>>>>>>>=0A= >>>>>>>>On 6/18/15=2C 3:57 PM=2C "Michael Schmalle" =0A= >>>>>>>>wrote:=0A= >>>>>>>>=0A= >>>>>>>>>Yeah=2C I am probably going to leave this stuff to to other people= if=0A= >>>>>>>>>they=0A= >>>>>>>>>so=0A= >>>>>>>>>choose. :) I could eventually parse that one to get something goin= g=0A= >>>>>>>>>though.=0A= >>>>>>>>>=0A= >>>>>>>>>Mike=0A= >>>>>>>>>=0A= >>>>>>>>>BTW the jQuery will end up in separate SWC sooner than later.=0A= >>>>>>>>>=0A= >>>>>>>>>On Thu=2C Jun 18=2C 2015 at 6:49 PM=2C OmPrakash Muppirala=0A= >>>>>>>>>=0A= >>>>>>>>>wrote:=0A= >>>>>>>>>=0A= >>>>>>>>>> On Thu=2C Jun 18=2C 2015 at 3:42 PM=2C Michael Schmalle <=0A= >>>>>>>>>> teotigraphixllc@gmail.com=0A= >>>>>>>>>>> wrote:=0A= >>>>>>>>>>=0A= >>>>>>>>>>> On Thu=2C Jun 18=2C 2015 at 4:27 PM=2C OmPrakash Muppirala <=0A= >>>>>>>>>> bigosmallm@gmail.com=0A= >>>>>>>>>>>>=0A= >>>>>>>>>>> wrote:=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>> I don't remember using different modules in D3.js=2C they are = all=0A= >>>>>>>>>>part of=0A= >>>>>>>>>>> the=0A= >>>>>>>>>>>> same module I guess? Unless you mean Behaviors=2C Core=2C etc.= from=0A= >>>>>>>>>>here:=0A= >>>>>>>>>>>> https://github.com/mbostock/d3/wiki/API-Reference=0A= >>>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>> Well I looked at this=2C I really want to try and get it but MA= N=0A= >>>>>>>>>>>this=0A= >>>>>>>>>>stuff=0A= >>>>>>>>>>> takes a lot of time to write and I just don't have the time.=0A= >>>>>>>>>>>=0A= >>>>>>>>>>> I did find a piece of something that might get you going when w= e=0A= >>>>>>>>>>>get=0A= >>>>>>>>>>the=0A= >>>>>>>>>>> compiler EXTERNC creating separate packages. Do me a favor and= =0A= >>>>>>>>>>>look=0A= >>>>>>>>>>at=0A= >>>>>>>>>> that=0A= >>>>>>>>>>> file and API=2C tell me how much is missing from it that you wo= uld=0A= >>>>>>>>>>>use=0A= >>>>>>>>>>> "regularly".=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>=0A= >>>>>>>>>>https://github.com/lbondaryk/BrixClient/blob/master/src/externs/d= 3=0A= >>>>>>>>>>.v=0A= >>>>>>>>>>3.=0A= >>>>>>>>>>ex=0A= >>>>>>>>>>t=0A= >>>>>>>>>>erns.js=0A= >>>>>>>>>>=0A= >>>>>>>>>>=0A= >>>>>>>>>> Looks a bit outdated=2C this one is for v3=2C whereas D3.js is a= t=0A= >>>>>>>>>>version=0A= >>>>>>>>>>3.1=0A= >>>>>>>>>> now. Other than that=2C on a cursory glance=2C it looks like all= the=0A= >>>>>>>>>>commonly=0A= >>>>>>>>>> used APIs are available.=0A= >>>>>>>>>>=0A= >>>>>>>>>> Thanks=2C=0A= >>>>>>>>>> Om=0A= >>>>>>>>>>=0A= >>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>> Mike=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>>>=0A= >>>>>>>>>>>> Thanks=2C=0A= >>>>>>>>>>>> Om=0A= >>>>>>>>>>>>=0A= >>>>>>>>>>>> On Thu=2C Jun 18=2C 2015 at 1:03 PM=2C Michael Schmalle <=0A= >>>>>>>>>>>> teotigraphixllc@gmail.com=0A= >>>>>>>>>>>>> wrote:=0A= >>>>>>>>>>>>=0A= >>>>>>>>>>>>> Om=2C I am looking at d3=2C looks pretty impressive=2C what m= odules=0A= >>>>>>>>>>would=0A= >>>>>>>>>> you=0A= >>>>>>>>>>>> be=0A= >>>>>>>>>>>>> using. They have good API and I could create a base externs= =0A= >>>>>>>>>>>>>file=0A= >>>>>>>>>> pretty=0A= >>>>>>>>>>>>> quick.=0A= >>>>>>>>>>>>>=0A= >>>>>>>>>>>>> Mike=0A= >>>>>>>>>>>>>=0A= >>>>>>>>>>>>> On Thu=2C Jun 18=2C 2015 at 3:52 PM=2C Michael Schmalle <=0A= >>>>>>>>>>>>> teotigraphixllc@gmail.com=0A= >>>>>>>>>>>>>> wrote:=0A= >>>>>>>>>>>>>=0A= >>>>>>>>>>>>>> I agree=2C but I am just throwing crap at the wall right now= .=0A= >>>>>>>>>>>>>>:)=0A= >>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>> Mike=0A= >>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>> On Thu=2C Jun 18=2C 2015 at 3:50 PM=2C Alex Harui=0A= >>>>>>>>>>>>>>=0A= >>>>>>>>>>> wrote:=0A= >>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>> Yes=2C you continue to amaze. FWIW=2C I think Jquery should= be=0A= >>>>>>>>>>>>>>>in=0A= >>>>>>>>>>its=0A= >>>>>>>>>>> own=0A= >>>>>>>>>>>>>>> swc. What do others think? Svg would go in js.swc since all= =0A= >>>>>>>>>>> browser=0A= >>>>>>>>>>>> we=0A= >>>>>>>>>>>>>>> care about have these APIs=2C but the JS-framework-specific= =0A= >>>>>>>>>>externs=0A= >>>>>>>>>>>> should=0A= >>>>>>>>>>>>>>> probably have their own swc.=0A= >>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>> Thoughts?=0A= >>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>> -Alex=0A= >>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>> On 6/18/15=2C 12:42 PM=2C "OmPrakash Muppirala"=0A= >>>>>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>> wrote:=0A= >>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>Fantastic! This is huge. I will build something with it as= =0A= >>>>>>>>>>soon=0A= >>>>>>>>>>> as=0A= >>>>>>>>>>>>> you=0A= >>>>>>>>>>>>>>>>check it in.=0A= >>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>Any chance you can bring in d3.js as well? This looks like = a=0A= >>>>>>>>>> good=0A= >>>>>>>>>>>>>>> source:=0A= >>>>>>>>>>>>>>>>https://github.com/federico-b/d3-externs=0A= >>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>On that note=2C there is an extern file generator available= =0A= >>>>>>>>>>here:=0A= >>>>>>>>>>>>>>>>http://www.dotnetwise.com/Code/Externs/ Have you seen it?= =0A= >>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>Thanks=2C=0A= >>>>>>>>>>>>>>>>Om=0A= >>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>On Thu=2C Jun 18=2C 2015 at 12:28 PM=2C Michael Schmalle <= =0A= >>>>>>>>>>>>>>>>teotigraphixllc@gmail.com> wrote:=0A= >>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> Hi=2C=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> I decided I needed to give myself a severe headache=2C so= I=0A= >>>>>>>>>> decided=0A= >>>>>>>>>>>> to=0A= >>>>>>>>>>>>>>>>>tackle=0A= >>>>>>>>>>>>>>>>> JQuery externals!=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> Well 4 hours later and some swearing=2C I got it working= =0A= >>>>>>>>>>pretty=0A= >>>>>>>>>>>> well=2C I=0A= >>>>>>>>>>>>>>>>>had=0A= >>>>>>>>>>>>>>>>> to exclude a couple "inner classes"=2C for the most part= =2C it=0A= >>>>>>>>>>is=0A= >>>>>>>>>>> very=0A= >>>>>>>>>>>>>>>>>usable.=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> 1. This needs to be added to the build file=0A= >>>>>>>>>>>>>>>>>(contrib/externs/jquery-1.9.js)=0A= >>>>>>>>>>>>>>>>> is the source location and needs to be placed with the=0A= >>>>>>>>>>others.=0A= >>>>>>>>>>> Same=0A= >>>>>>>>>>>>>>> with=0A= >>>>>>>>>>>>>>>>> svg.js.=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> I have not really used jQuery much so....=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> package=0A= >>>>>>>>>>>>>>>>> {=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> public class Main=0A= >>>>>>>>>>>>>>>>> {=0A= >>>>>>>>>>>>>>>>> public function Main()=0A= >>>>>>>>>>>>>>>>> {=0A= >>>>>>>>>>>>>>>>> var div:HTMLDivElement =3D=0A= >>>>>>>>>>>>>>>>> HTMLDivElement(document.createElement("div"))=3B=0A= >>>>>>>>>>>>>>>>> div.innerHTML =3D "A nice Div element"=3B=0A= >>>>>>>>>>>>>>>>> document.body.appendChild(div)=3B=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> $("div").css("border"=2C "2px solid green")=3B=0A= >>>>>>>>>>>>>>>>> }=0A= >>>>>>>>>>>>>>>>> }=0A= >>>>>>>>>>>>>>>>> }=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> http://snag.gy/il5R6.jpg=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> http://snag.gy/wyPcH.jpg=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>>> Mike=0A= >>>>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>>=0A= >>>>>>>>>>>>>=0A= >>>>>>>>>>>>=0A= >>>>>>>>>>>=0A= >>>>>>>>>>=0A= >>>>>>>>=0A= >>>>>>>=0A= >>>>>>=0A= >>>>>=0A= >>>>=0A= >>>=0A= >>=0A= >=0A= =