Hi Pete
I was trying out the demo and have a couple of questions:
Under "More Windows", clicking on the hyper links to create a few
windows (utility, standard). Now that there're several windows open
along side with the main app window. When click on close on the main
app window, the app exit and left all the other windows behind.
I attached a listener to each window that got open like in
accordion.js:
makeUtility: function(){
var utility = new dair.Window({
size:{ w: 100, h:100 },
type:"utility"
});
utility.addEventListener(air.Event.CLOSING, this.onClosing);
getWindow().inApp.addWindow(utility);
},
1) All the windows now will get closed when click on close on the main
app, but I'm getting this
TypeError: Value undefined (result of expression
utility.addEventListener) is not object.
In dair.Window.js I see there is function
onClose: function(e){
// summary: Event fired when window is being closed. Return false
to prevent.
return true; // Boolean
},
2) Is there a better way to listen to the closing event through this
onClose function?
On Dec 27 2008, 3:47 pm, Jeff Lu <
jeff_k...@yahoo.com> wrote:
> Thanks, the zip works for me.
>
> ________________________________
> From: pete higgins <
phigg...@gmail.com>
> To:
doj...@googlegroups.com
> Sent: Saturday, December 27, 2008 3:32:32 PM
> Subject: [dair] Re: Is the demo source code for available for download?
>
> Hmm, odd. I've re-tar'ed the one, and uploaded again. (downloaded and
> tested myself locally after), and also put up a .zip version in case
> something else is going on.
>
>
http://dante.dojotoolkit.org/dairScreencast-code.tar.gzhttp://dante.dojotoolkit.org/dairScreencast-code.zip
>
> Both were made on osx, so let me know if they don't work for some
> reason either ...
>
> Regards,
> Peter Higgins
>
> On Sat, Dec 27, 2008 at 3:23 PM, Jeff Lu <
jeff_k...@yahoo.com> wrote:
> > Hi Pete,
>
> > There's a problem with the zipped file. Can you please upload it again?
>
> > Thank you
>
> > ________________________________
> > From: pete higgins <
phigg...@gmail.com>
> > To:
doj...@googlegroups.com
> > Sent: Friday, December 26, 2008 10:44:43 AM
> > Subject: [dair] Re: Is the demo source code for available for download?
>
> > I've found it! Uploaded it to
>
> >
http://dante.dojotoolkit.org/dairScreencast-code.tar.gz
>
> > You'll need to add a dAIR checkout and Dojo release in js/ as per the
> > README in that folder, but otherwise should work out of the box.
>
> > Regards,
> > Peter Higgins
>
> > ps: Dylan, All, should we clean this up and make it a featured
> > download? or replace the sample.tar.gz with this demo?
>
> >> Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org