[FlexJS] ClippingViewport

2017-07-30 Thread Harbs
Is anyone using ClippingViewport? It seems to be extraneous at this point. Viewport does clipping by default. Thanks, Harbs

Re: XML hasOwnProperty method

2017-07-30 Thread Harbs
workaround.) Thanks, Harbs > On Jul 30, 2017, at 9:56 PM, Jim Norris wrote: > > This may be for Harbs as I think he did a lot of the work for XML. > > > > I am working on some existing Flex code and trying to convert portions of it > to FlexJS. As part of the applicati

Re: XML hasOwnProperty method

2017-07-30 Thread Harbs
I just tried this and I see the problem. I should have it fixed soon… > On Jul 30, 2017, at 10:38 PM, Harbs wrote: > > Hi Jim, > > Do you get some kind of error when you do this? Are you using 0.8.0 or the > nightly? > > I don’t think hasOwnProperty is somethin

Re: XML hasOwnProperty method

2017-07-30 Thread Harbs
I just pushed a fix. If you know how to patch your build, you can do that. Otherwise, the fix should be in tomorrow’s nightly. Thanks, Harbs > On Jul 30, 2017, at 10:47 PM, Harbs wrote: > > I just tried this and I see the problem. > > I should have it fixed soon… > >>

Re: [MAVEN-BUILD] FlexJS Framework (maven) - Build # 1129 - Still Failing

2017-07-30 Thread Harbs
The Maven build has been failing for the last 3 days. I could not figure out why. (The Ant build seems to be fine.) Does any of the Maven folks want to take a look? Thanks, Harbs > On Jul 30, 2017, at 11:00 PM, Apache Jenkins Server > wrote: > > The Apache Jenkins build syst

Re: XML hasOwnProperty method

2017-07-30 Thread Harbs
There are quite a few fixes to XML in particular in the nightly, so I would recommend that you use the nightly anyway. If you need help getting the nightly, let us know. Thanks, Harbs > On Jul 30, 2017, at 11:05 PM, Jim Norris wrote: > > That's great news! I am using 0.8 righ

Re: [07/13] git commit: [flex-asjs] [refs/heads/release0.8.0] - give up on trying to use FlexBox for full-screen 3-pane views. FlexBox seems more happy stretching to content size instead of clipping a

2017-07-31 Thread Harbs
The only example I found was the ASDoc app. I switched it and it appears to work. (I pushed my changes.) > On Jul 31, 2017, at 7:35 AM, Alex Harui wrote: > > It will either work in the examples that use it or it won't. Try it and > find out. > > -Alex > > On 7/3

FlexJS PAYG and layouts

2017-07-31 Thread Harbs
out that make sense. 3. If a subclass is just adding additional functionality (such as setting the alignment of the children), it only needs to add code for that specific functionality without the need to either rewrite the layout function twice or make two loops. Thoughts? Harbs

Re: FlexJS PAYG and layouts

2017-07-31 Thread Harbs
. A more functional approach might be appropriate. Yishay had an interesting idea on maybe using CSS to apply functionality. I’m going to sit on this one for a while and see if I come up with any brainstorms. Harbs [1]http://blog.calyptus.eu/seb/2011/01/javascript-call-performance-just-inline-it

Re: Moonshine 1.5.1 Released

2017-08-01 Thread Harbs
Go ahead! > On Aug 1, 2017, at 3:23 PM, piotrz wrote: > > Team, > > It is worth to mention this one on or Fan page and twitter again - any > objections ? > > Thanks, > Piotr > > > > - > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this message in context: > http://apache-fle

Re: XML hasOwnProperty method

2017-08-01 Thread Harbs
uestions/23022956/internet-explorer-11-ie-11-throws-syntax-error-using-parsefromstring-in-dompar > https://stackoverflow.com/questions/31277058/parsefromstring-throws-error-in-ie-but-not-in-chrome?noredirect=1&lq=1 > > Let me know if I can provide any additional info. > >

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-01 Thread Harbs
unexpected NaN value, I’ve found it’s very easy to walk up the stack trace to discover where math has been done with an undefined value which basically without fail exposes the bug. Initializing the values to NaN would mask the issues and make them harder to find. My $0.02, Harbs > On Aug 1, 2

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-01 Thread Harbs
enough, but I do agree with you that it’s currently broken. For now, we’re going to have to agree to disagree on initializing values. I’ve seen a lot of value in leaving them undefined. It makes it really clear while debugging whether the value has been set or not. Harbs > On Aug 2, 2017, at

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-01 Thread Harbs
Interesting. I’m not sure that I realized that NaN passes that test. Does it? > On Aug 2, 2017, at 1:12 AM, Greg Dove wrote: > > I agree undefined works the same as NaN for many things for example, but it > fails on very basic things like if (x is Number)

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-01 Thread Harbs
I’d prefer if we could somehow get the best of both worlds. I don’t see a solution to that dilemma at the moment, but maybe we’ll come up with something... Harbs > On Aug 2, 2017, at 1:24 AM, Josh Tynjala wrote: > > Don't get me wrong. If you see value in it, then we defini

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-01 Thread Harbs
. I don’t know that this is possible, but that would be ideal in my book. If that’s not possible, then yes, I agree that two compiler options is the best we can do. Hope that’s clearer, Harbs > On Aug 2, 2017, at 1:49 AM, Greg Dove wrote: > > I’d prefer if we could somehow get the bes

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
can come up with a list of use cases where initialized vs uninitialized values behave differently. It might be interesting to see how many can be resolved without initialization. If nothing else, it can serve as a guide for developers deciding which compiler option to use. Thanks, Harbs >

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
Yes. I just tried the new compiler option and I can confirm that this is the case. Only local variables are initialized. Additionally: This: var len:int; Compiles to: var /** @type {number} */ len = 0 = null; > On Aug 2, 2017, at 7:34 AM, Alex Harui wrote: > > BTW, IIRC, VarDeclarationEmitter

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
; initializations are not expressed in the js output while still maintaining > as3 compatibility. I completely agree with these statements. Challenges are fun. ;-) Give me some time to put together my doc and let’s see where that goes. I think having a clear list of the issues should be helpful. Ha

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
tape both length and number of reals. > > Regards, > Dave > >> >>> On Aug 1, 2017, at 3:21 PM, Greg Dove wrote: >>> >>> Yes it does. NaN is an 'instance' of the Number type (even though it is >>> 'Not a Number' ;)

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
https://jonnyjordan.com/blog/remove-send-email-button-off-macbook-2016-touch-bar-apple-mail/ > On Aug 3, 2017, at 1:00 AM, Dave Fisher wrote: > > I hate this Macbook’s touch top bar which puts a send

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
I’m curious. How does that work? unknownNumOrNaN != NaN will always be true > On Aug 3, 2017, at 1:37 AM, Josh Tynjala wrote: > > Good one! To avoid the overhead of the isNaN() function call, I frequently > rely on the fact that NaN != NaN. > > - Josh > > On Wed, Aug 2

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-02 Thread Harbs
in the past but the > above seems better > > > On Thu, Aug 3, 2017 at 6:20 PM, Harbs wrote: > >> I’m curious. How does that work? >> unknownNumOrNaN != NaN will always be true >> >>> On Aug 3, 2017, at 1:37 AM, Josh Tynjala wrote: >>> &

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-03 Thread Harbs
JS than AS where initialization would not help. I’ve started my document. I’ll add this case. Once the doc starts coming together I’ll share on the list. :-) Harbs > On Aug 3, 2017, at 3:59 PM, Josh Tynjala wrote: > > Switching away from isNaN() in Feathers improved perform

FlexJS Bead dilemma

2017-08-03 Thread Harbs
necessary. Scratch that. I see that already exists. Problem solved… I’ll fix the layouts. Harbs

Re: FlexJS Bead dilemma

2017-08-03 Thread Harbs
is is the best pattern. It was what we did to get > the examples to run. > > Another option is that layout beads listen for changes to visible and > reset the CSS display style when visible changes. > > Food for thought, > -Alex > > On 8/3/17, 8:00 AM, "Harbs"

Re: FlexJS Bead dilemma

2017-08-03 Thread Harbs
running the layout if not needed… Harbs > On Aug 3, 2017, at 6:24 PM, Alex Harui wrote: > > Right, so layout code would have to check for display=="none" and not set > display and listen for the show event. > > Maybe as you clean up the setting of display multiple t

Re: FlexJS Bead dilemma

2017-08-03 Thread Harbs
t; just-in-case they are made invisible isn't very PAYG. > > So maybe there is some other way that setting visible=false can inject > code that handles sharing the CSS display property with the layouts. Or > maybe it isn't worth worrying about right now. > > My 2 cen

Re: git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: Added -js-default-initializers option to force uninitialized variables to default to the same values in JS as they do in SWF.

2017-08-03 Thread Harbs
It seems that there is: https://jsperf.com/isnan-performance/2 <https://jsperf.com/isnan-performance/2> I did not see much difference between methods in terms of performance. > On Aug 3, 2017, at 4:30 PM, Harbs wrote: > > I wonder if there’s a difference between Flash and JS.

Re: XML hasOwnProperty method

2017-08-04 Thread Harbs
I just committed some code which I think fixes IE. Harbs > On Jul 31, 2017, at 11:40 PM, Jim Norris wrote: > > Hi- > > I installed the Apache FlexJS Nightly using the SDK Installer and adjusted > the project compiler to the new SDK, but I am still seeing

Re: FlexJS Bead dilemma

2017-08-05 Thread Harbs
Yes. I think that’s it. Postponing layout on any non-visible element is something we probably want to do. > On Aug 5, 2017, at 9:50 PM, yishayw wrote: > > You might be referring to what we did with Accordion. There, I added > AccordionItemRendererView which does the following: > >

Re: FlexJS Bead dilemma

2017-08-06 Thread Harbs
-forward way of avoiding the unnecessary layouts), but not do #2. The question I have is whether to add the LayoutOnShow bead to the defaults for Basic, or should that only go into Express? Harbs > On Aug 3, 2017, at 11:57 PM, Harbs wrote: > > My ideas on bead lifecycles might help for

FlexJS Express Components

2017-08-06 Thread Harbs
for setting bead properties. It would seem to me that convenience methods would be very helpful. 4. I seems like there’s lots of additional compound components which would be useful. I’m going to try and add some… Harbs

Package, Class and Method renaming

2017-08-06 Thread Harbs
walking the tree and packages, classes and members could each be handled explicitly. Thoughts? Harbs

Re: Package, Class and Method renaming

2017-08-06 Thread Harbs
t;string"] access which I think prevents renaming in GCC. > > There are options in the compiler to skip generating the js-debug and just > call GCC. > > My 2 cents, > -Alex > > On 8/6/17, 3:13 PM, "Harbs" wrote: > >> I’m getting close to the release of my

Re: Package, Class and Method renaming

2017-08-06 Thread Harbs
d in > any typical app, especially if no modules are in play. The question is > "which ones"? But if we can make it possible, it should be a good > obfuscator as well. > > My 2 cents, > -Alex > > On 8/6/17, 10:57 PM, "Harbs" wrote: > >> I’m

Re: Package, Class and Method renaming

2017-08-07 Thread Harbs
ctions, goog could probably do a better job optimizing those. (i.e. instead of foo.baz = “baz”, Falcon could write foo.set__baz(“baz”) and var baz = foo.baz could become var baz = foo.get__baz()) Harbs > On Aug 7, 2017, at 9:56 AM, Harbs wrote: > > Another case which seems to need

Re: [1/2] git commit: [flex-asjs] [refs/heads/develop] - Upgrade should wait for other beads (e.g. IDataProviderItemRendererMapper) to do their thing

2017-08-07 Thread Harbs
DataContainerBase is a mess. I’m planning on reorganizing that when I finish my work with the strand branch. The problem here was that the bead was added too soon. > On Aug 7, 2017, at 3:02 PM, Piotr Zarzycki wrote: > > Yishay, > > Please check DataContainer which is extended by List for Menu

Re: Package, Class and Method renaming

2017-08-07 Thread Harbs
the script, but doable. In the meantime, I’ve been examining my minified code for places where the source can be better constructed to output better minified code. That’s where the thought of using the set__ and get__ functions came from. Harbs > > -Alex >

FlexJS Random crazy thought

2017-08-07 Thread Harbs
make FlexJS an option for many TypeScript developers and give FlexJS a shot at vastly increased adoption. Thoughts? Harbs

Re: Package, Class and Method renaming

2017-08-07 Thread Harbs
Cool. How difficult would it be to allow this on a class-by-class basis? > On Aug 7, 2017, at 6:35 PM, Alex Harui wrote: > > First thing I will do, though, is allow turning off @export output on > entire compiler sessions. That might allow you to have your text engine > and your application lo

Re: FlexJS Random crazy thought

2017-08-07 Thread Harbs
between ActionScript and >> TypeScript), so it would be better to piggyback on Microsoft's work, in my >> opinion. Especially since it would be a never-ending game of catch up as >> TypeScript continues to evolve. >> >> - Josh >> >> On Mon, Aug 7, 2017

FlexJS Model beads

2017-08-07 Thread Harbs
Studying the bead architecture it looks to me like IBeadModels should never attach event listeners. (Strand allows for setting a new model and does not allow for cleaning up event listeners on the old model.) Is that right?

Comparison of type inconsistencies

2017-08-07 Thread Harbs
t/d/1xKH9nIF68pZQD0W6H39PAW_0BeVkAffoWCoYxKDekj0/edit?usp=sharing> Harbs

Re: Image caching

2017-08-07 Thread Harbs
Check out BinaryImage. > On Aug 7, 2017, at 10:21 PM, Jim Norris wrote: > > I had some code in my old Flex application to load and cache image files. > The code used Loader and then created a Bitmap object from the downloaded > image file. > > Can anyone suggest the possibilities for how I

Re: FlexJS Model beads

2017-08-07 Thread Harbs
are scenarios I'm not thinking of. > > My 2 cents, > -Alex > > > > On 8/7/17, 11:00 AM, "Harbs" wrote: > >> Studying the bead architecture it looks to me like IBeadModels should >> never attach event listeners. >> >> (Strand allows for setting a new model and does not allow for cleaning up >> event listeners on the old model.) >> >> Is that right? >

FlexJS Applying a bead by default

2017-08-07 Thread Harbs
is not one of the accepted interfaces in CSS. Is there something I’m missing? Ideas on how to accomplish this? Harbs

Re: Comparison of type inconsistencies

2017-08-07 Thread Harbs
I find it very tedious to write in the wiki. Google Docs is much more user friendly to me. We can copy it to wherever we want… > On Aug 7, 2017, at 11:34 PM, piotrz wrote: > > Hi Harbs, > > It sounds interesting - I've looked into it briefly, but will do this more > s

Re: FlexJS Applying a bead by default

2017-08-07 Thread Harbs
rent Container (probably a cheap subclass of > Container) and apply the bead in the constructor or fetch it from CSS in > addedtoParent(). > > -Alex > > > On 8/7/17, 1:12 PM, "Harbs" wrote: > >> I would like to apply a bead (LayoutOnShow) to every Conta

Re: FlexJS Applying a bead by default

2017-08-07 Thread Harbs
actual implementation you should choose. > > My 2 cents, > -Alex > > On 8/7/17, 2:01 PM, "Harbs" wrote: > >> I actually just tried that, and it all blew up. I'll probably figure out >> why soon... >> >> It feels broken that I have to create

Re: FlexJS Applying a bead by default

2017-08-07 Thread Harbs
; do that in CSS. > > My 2 cents, > -Alex > > On 8/7/17, 2:14 PM, "Harbs" wrote: > >> Yeah. But we really should have a way to declare beads that are injected. >> >> Since we are already using CSS files to declare beads of specific types, >> m

Re: FlexJS Bead dilemma

2017-08-07 Thread Harbs
If it doesn’t remove itself, it seems like you’d end up with two layout beads and it would probably keep injecting more layout beads each time the component is made visible. > On Aug 8, 2017, at 9:30 AM, Alex Harui wrote: > > I was thinking the wrapper was an IBeadLayout, otherwise you couldn'

Re: FlexJS Bead dilemma

2017-08-08 Thread Harbs
None of this is really high priority for me right now. None of the layouts I’m using are really expensive layouts and any performance issues I’m having are caused by other problems. I’m more trying to figure out the best general resolution to this issue. Thanks, Harbs > On Aug 8, 2017, a

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
I assume Josh was talking about a hotfix. I was just thinking that it’s time to release 0.9.0.. I wonder if we could just try and get a new release out the door quickly. I’ll try and spend some time with the examples. > On Aug 8, 2017, at 5:41 PM, Alex Harui wrote: > > A 0.8.1 release is fin

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
n it, especially if I'm not the RM. I do think we need to make sure we > didn't break the examples though. > > -Alex > > On 8/8/17, 7:45 AM, "Harbs" <mailto:harbs.li...@gmail.com>> wrote: > >> I assume Josh was talking about a hotfix. >&g

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
I tried it before and it was not showing up, but I just tried now and it is. I wonder if there was an API problem. I’m not 100% sure what it’s supposed to do, can you check again? > On Aug 8, 2017, at 5:41 PM, Alex Harui wrote: > > However, I just saw that > DataBindingExample is broken. The

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
js-debug, js-release or swf? > On Aug 8, 2017, at 10:54 PM, Alex Harui wrote: > > Still not working for me. > > On 8/8/17, 12:42 PM, "Harbs" wrote: > >> I tried it before and it was not showing up, but I just tried now and it >> is. >> >>

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
didn't try js-release. > > When I click the checkbox, the data is there. Could be that the price is > not in the data returned. > > -Alex > > On 8/8/17, 1:06 PM, "Harbs" wrote: > >> js-debug, js-release or swf? >> >>> On Aug 8, 2017, at 10:54

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22YHOO%22)&env=store://datatables.org/alltableswithkeys&format=json> Currently returns: https://paste.apache.org/QxdH <https://paste.apache.org/QxdH> > On Aug 8, 2017, at 11:25 PM, Harbs wrote: > > For some r

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
swf. That’s all I have time for right now. Harbs > On Aug 8, 2017, at 5:41 PM, Alex Harui wrote: > > We will > probably need to stop and check all of the examples again.

Re: Flex 0.8.1 release?

2017-08-08 Thread Harbs
up FireFox or AIR with > the various examples. Saves typing stuff on the command line or picking > things from the File explorer. > > -Alex > > On 8/8/17, 1:39 PM, "Harbs" wrote: > >> DataBindingExample - works (with the exception of the API issue) >

Re: [01/10] git commit: [flex-asjs] [refs/heads/refactor-strand] - Core changes to IStrand

2017-08-08 Thread Harbs
I’m not sure I understand how CreateJS passes at all. Application.as (in CreateJS) has a call to addBead() and I don’t see the function defined anywhere… > On Jul 18, 2017, at 7:20 AM, piotrz wrote: > > Hi Harbs, > > I've created pipelines for your strand-work branch. Ju

Re: [01/10] git commit: [flex-asjs] [refs/heads/refactor-strand] - Core changes to IStrand

2017-08-08 Thread Harbs
Never mind. On JS it’s defined in the superclasses. > On Aug 8, 2017, at 11:56 PM, Harbs wrote: > > I’m not sure I understand how CreateJS passes at all. Application.as (in > CreateJS) has a call to addBead() and I don’t see the function defined > anywhere… > >> On

Re: Package, Class and Method renaming

2017-08-08 Thread Harbs
Did you try MXML with custom components? I’m not sure I understand how that would work. > On Aug 9, 2017, at 12:01 AM, Alex Harui wrote: > > Some things I found were that MXML isn't a problem because the id maps to > a getter/setter which maps to Object.DefineProperty which takes an object > st

Re: Package, Class and Method renaming

2017-08-08 Thread Harbs
t; -Alex > > On 8/8/17, 2:30 PM, "Harbs" wrote: > >> Did you try MXML with custom components? I’m not sure I understand how >> that would work. >> >>> On Aug 9, 2017, at 12:01 AM, Alex Harui >>> wrote: >>> >>> Some th

Re: Package, Class and Method renaming

2017-08-08 Thread Harbs
> -Alex > > On 8/8/17, 10:22 PM, "Harbs" wrote: > >> I have a custom component “A” which implements a DisabledBead in >> ActionScript. It has a getter called “enabled”. >> >> I have another MXML file “B” which uses the component and specifies >

Re: Package, Class and Method renaming

2017-08-09 Thread Harbs
every reference to these properties is renamed. textInput.addEventListener becomes: this.yw.addEventListener disableBead.disabled becomes this.Jm.disabled etc. this.yw and this.Jm are both undefined > On Aug 9, 2017, at 9:10 AM, Harbs wrote: > > I’ll give it a go and see. > >> On

Re: Package, Class and Method renaming

2017-08-09 Thread Harbs
at. (We can’t do that for id because it might be used by CSS.) Harbs > On Aug 9, 2017, at 10:25 AM, Harbs wrote: > > Here’s a problem I ran into: > > I have a component which has the following: > https://paste.apache.org/cN1T <https://paste.apache.org/cN1T> >

Re: Package, Class and Method renaming

2017-08-09 Thread Harbs
g 9, 2017, at 10:45 AM, piotrz wrote: > > Harbs, > > Questions out of scope of your problem: > 1) Is this whole component is created dynamically ? I mean new > MyComponent()? > 2) MDL TextField has UpgradeElement and you are adding it in MXML - didn't > you get upgrade?

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-09 Thread Harbs
+1. Here’s some topics that we need: 1. Different Layout beads and what they do. 2. What beads can be applied to which components 3. List of components and differences between them (i.e. Container vs Group) There’s probably much more, but these come immediately to mind. > On Aug 9, 2017, at 2:1

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-09 Thread Harbs
Data Binding needs special coverage because it requires some getting used to. I’m not sure what the status of formatters and validators are. I think pretty weak at the moment. We’re using the MDL dialog. Another good topic is the fact that there’s a big difference between the behavior of “visi

Re: Package, Class and Method renaming

2017-08-09 Thread Harbs
t; Thanks, > -Alex > > On 8/9/17, 12:45 AM, "Harbs" wrote: > >> The problem is as follows: >> >> Taking textInput as an example, the MXML gets compiled into the following: >> textInput: { >> /** @this {com.printui.view.com

Re: Package, Class and Method renaming

2017-08-09 Thread Harbs
in the output file. It might be possible to do string > replacement on the exported names after the minification. String replacement is definitely an option if it comes to that. I’m probably going to do that for class names and paths as I don’t really see that we currently have a solution for

Re: Package, Class and Method renaming

2017-08-09 Thread Harbs
d that the class names are used by SimpleCSSValuesImpl to > determine the type selectors. So if you rename those strings you will > have to change your CSS. > > Also, I have not removed the exportSymbol calls on each class yet. I will > try that as well. > > -Alex > > &g

Re: Package, Class and Method renaming

2017-08-10 Thread Harbs
CSS. > > Also, I have not removed the exportSymbol calls on each class yet. I will > try that as well. > > -Alex > > > On 8/9/17, 2:11 PM, "Harbs" wrote: > >> >>> On Aug 9, 2017, at 11:56 PM, Alex Harui >>> wrote: >>> &g

Re: Package, Class and Method renaming

2017-08-10 Thread Harbs
ng for cross-module usage. > > Of course, I could be wrong... > -Alex > > On 8/10/17, 1:45 AM, "Harbs" wrote: > >> For kicks I tried modifying the compiler to not emit @export for my code >> (it still has the @exports for SDK code). >> >> The

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-11 Thread Harbs
Let’s just focus on getting documentation written for now. It can always be re-organized later. I just wrote what I think is a useful tutorial on using random HTML/CSS/JS. This should probably be included somehow… https://docs.google.com/document/d/1pW599xo-Icys-xXEeNi6tbTcH-iMepbTR6WcviLy7i8/e

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-11 Thread Harbs
Go for it! :-) > On Aug 11, 2017, at 3:26 PM, Olaf Krueger wrote: > > This is an awesome tutorial, thanks Harbs! > Hope I'll have some time to follow these steps by myself. > > However, if I'll get your permission I will definitely help to put in on the > git

FlexJS more problematic CSS

2017-08-11 Thread Harbs
The CSS in my tutorial here[1] does not compile inside a fx:Style block. Can one of our compiler gurus take a look at that? ;-) Harbs [1]https://docs.google.com/document/d/1pW599xo-Icys-xXEeNi6tbTcH-iMepbTR6WcviLy7i8/edit#heading=h.un4iqbgnan3b <https://docs.google.com/document/d/1pW59

Re: FlexJS more problematic CSS

2017-08-11 Thread Harbs
Yes. I have a css file in src/assets/defaults.css. The css file is copied to bin/js-debug and bin/js-release when I compile. In src/resources/template.html I have in the header: http://apache-flex-development.247.n4.nabble.com/FlexJS-more-problematic-CSS-tp63810p63812.html > Sent from the Apa

Re: FlexJS more problematic CSS

2017-08-11 Thread Harbs
If you use an HTML template file there are a couple of things to keep in mind: 1. You need to have http://apache-flex-development.247.n4.nabble.com/FlexJS-more-problematic-CSS-tp63810p63814.html > Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: FlexJS more problematic CSS

2017-08-11 Thread Harbs
ed for all native HTML elements. > > HTH, > -Alex > > On 8/11/17, 6:20 AM, "Harbs" wrote: > >> The CSS in my tutorial here[1] does not compile inside a fx:Style block. >> >> Can one of our compiler gurus take a look at that? ;-) >> >>

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-12 Thread Harbs
I meant the “copied JS”, but yes. > On Aug 11, 2017, at 11:23 PM, Olaf Krueger wrote: > > Forget about this: > >> The advantage of MXML is that we can declare both JS code and the CSS in > the same file. > > I think you mean AS instead of JS?! > > Thanks, > Olaf > > > > -- > View this mess

Re: Package, Class and Method renaming

2017-08-12 Thread Harbs
Thanks for working on this! I’m going camping with my family this week, so I’m not sure I’m going to be able to test this until the end of the week or next week. Thanks, Harbs > On Aug 12, 2017, at 7:13 AM, Alex Harui wrote: > > I'm not sure I understand your proposal, but FWI

Re: [FlexJS] Browser compatibility

2017-08-12 Thread Harbs
I think it’s IE9 or later. > On Aug 12, 2017, at 9:10 PM, Olaf Krueger wrote: > > Hi, > I'd like to write some docs about the browser compatibility of FlexJS and > wonder how this technically works. > Is there some magic implemented within the compiler or is an external lib > used or is there wh

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-12 Thread Harbs
One suggestion: I think you should explicitly set a permissive license to any content on the wiki so we can repurpose it however we like without worrying about licensing afterwards. > On Aug 9, 2017, at 2:13 PM, Olaf Krueger wrote: > > Hi guys, > it seems to me that since Adobe announced the

Re: [FlexJS] Browser compatibility

2017-08-12 Thread Harbs
There’s nothing really built in, but there is a class that does browser sniffing so it’s possible to write conditional code. Check out BrowserInfo. > On Aug 12, 2017, at 9:37 PM, Olaf Krueger wrote: > > And if there's nothing already implemented to ensure browser compatibility > what could fol

FlexJS

2017-08-12 Thread Harbs
elements but there will be collisions with the “Basic” components. Currently the HTML components use library://ns.apache.org/flexjs/basic as their namespace. I think it makes sense to change that to library://ns.apache.org/flexjs/html instead. Any objections to making that change? Harbs

Re: FlexJS

2017-08-12 Thread Harbs
Changing the namespace is not enough. The package path of Basic is org.apache.flex.html. Unless we change the package path of HTML to be different than Basic, classes cannot be named the same… > On Aug 13, 2017, at 12:25 AM, Harbs wrote: > > Namespace for HTML components. > &

Re: FlexJS

2017-08-12 Thread Harbs
there is another set that has the same name as the HTML elements, > like Div, A, etc. > > -Alex > > On 8/12/17, 2:56 PM, "Harbs" <mailto:harbs.li...@gmail.com>> wrote: > >> Changing the namespace is not enough. >> >> The package path of Ba

Re: FlexJS

2017-08-12 Thread Harbs
>> I think there is another set that has the same name as the HTML elements, Right. That’s what I’m referring to when I mention “HTML” (as opposed to “Basic”. > On Aug 13, 2017, at 1:35 AM, Harbs wrote: > > The goal is to make it easy to fill in with simple HTML when there is

Re: FlexJS

2017-08-13 Thread Harbs
ccess you need to the HTML snippet. You > should be able to use innerHTML to inject any kind of HTML in a Div. But > the ids in the HTML aren't accessible to AS code. > > So, yes, you will need to wrap every HTML component with AS to access it > from AS. > > -Alex >

Re: [FlexJS] Browser compatibility

2017-08-13 Thread Harbs
inconsistencies as bugs to be fixed on the framework level. Harbs > On Aug 13, 2017, at 10:36 PM, Olaf Krueger wrote: > >> There’s nothing really built in > > Mhh... but I wonder if FlexJS can not guarantee consistency through > different browsers and different platforms,

Re: [FlexJS][Docs] Started with some docs using a github repo

2017-08-13 Thread Harbs
I’m not sure if it’s enough or not. I think you should explicitly make the wiki Apache to be totally sure. > On Aug 13, 2017, at 11:02 PM, Olaf Krueger wrote: > > OmPrakash Muppirala wrote >> That said, if you plan to migrate it to the Apache Flex project at a >> future >> point, it will be eas

Re: [FlexJS] Browser compatibility

2017-08-13 Thread Harbs
Very often there’s more than one way to achieve a goal. When given a choice between approaches, I’d pick the one which has the best browser compatibility. Given no other choice, I’d fall back to browser sniffing. > On Aug 14, 2017, at 9:25 AM, Olaf Krueger wrote: > >> I found one work-around f

Re: git commit: [flex-asjs] [refs/heads/develop] - Setting checked state manually now works

2017-08-18 Thread Harbs
Yes. You are right. I forgot to remove that line after I added check() and uncheck(). Hmm. On second thought: This is going to break setting the value via MXML. Let me fix that... > On Aug 18, 2017, at 3:06 PM, Piotr Zarzycki wrote: > > Hi Harbs, > > Ohh! Cool I didn't l

Re: git commit: [flex-asjs] [refs/heads/develop] - Setting checked state manually now works

2017-08-18 Thread Harbs
My latest commit should now work whether selected is being set via MXML or by code. > On Aug 18, 2017, at 3:29 PM, Harbs wrote: > > Yes. You are right. I forgot to remove that line after I added check() and > uncheck(). > > Hmm. On second thought: > > This is go

Re: git commit: [flex-asjs] [refs/heads/develop] - Setting checked state manually now works

2017-08-18 Thread Harbs
I fixed it a bit more and made similar changes to RadioButton. We need to do the same for IconToggle, but I’m out of time right now. If someone can do that, it would be great. Thanks, Harbs > On Aug 18, 2017, at 3:35 PM, Harbs wrote: > > My latest commit should now work whether se

Re: Build failed in Jenkins: flex-asjs #2513

2017-08-18 Thread Harbs
Yeah. > On Aug 18, 2017, at 4:55 PM, Piotr Zarzycki wrote: > > Harbs, > > I think you forgot import for Event. > > Thanks, > Piotr > > 2017-08-18 15:54 GMT+02:00 : > >> See <http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/2513/changes> &g

Re: git commit: [flex-asjs] [refs/heads/develop] - Setting checked state manually now works

2017-08-18 Thread Harbs
Maybe, but separating view and model in MDL is kind of difficult because it’s all mixed up in MDL itself. > On Aug 18, 2017, at 4:07 PM, piotrz wrote: > > Maybe we should actually create and move some things to CheckBoxView. It > seems to me that there is to much happen in the main components.

<    1   2   3   4   5   6   7   8   9   10   >