Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
JS.Packages file().styling()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anthony  
View profile  
 More options Apr 2 2012, 6:00 pm
From: Anthony <draftoma...@gmail.com>
Date: Mon, 2 Apr 2012 15:00:51 -0700 (PDT)
Local: Mon, Apr 2 2012 6:00 pm
Subject: JS.Packages file().styling()
I was browsing James Coglan's blog and I noticed this:

file('./lib/test.js')
            .provides('JS.Test')
            .requires('JS.Module', 'JS.Class', 'JS.Console', 'JS.DOM',
                      'JS.Enumerable', 'JS.SortedSet',
'JS.Comparable',
                      'JS.StackTrace')
            .styling('./lib/assets/testui.css');

That 'styling()' call has me curious. Is that documented anywhere?
What does it do exactly?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Coglan  
View profile  
 More options Apr 2 2012, 6:06 pm
From: James Coglan <jcog...@gmail.com>
Date: Mon, 2 Apr 2012 23:06:21 +0100
Local: Mon, Apr 2 2012 6:06 pm
Subject: Re: JS.Packages file().styling()

On 2 April 2012 23:00, Anthony <draftoma...@gmail.com> wrote:

> I was browsing James Coglan's blog and I noticed this:

> file('./lib/test.js')
>            .provides('JS.Test')
>            .requires('JS.Module', 'JS.Class', 'JS.Console', 'JS.DOM',
>                      'JS.Enumerable', 'JS.SortedSet',
> 'JS.Comparable',
>                      'JS.StackTrace')
>            .styling('./lib/assets/testui.css');

> That 'styling()' call has me curious. Is that documented anywhere?
> What does it do exactly?

It loads the named CSS file when that package is downloaded. It works in
browsers, AIR, and XULRunner.

--
James Coglan
http://jcoglan.com
+44 (0) 7771512510


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony  
View profile  
 More options Apr 2 2012, 6:09 pm
From: Anthony <draftoma...@gmail.com>
Date: Mon, 2 Apr 2012 15:09:07 -0700 (PDT)
Local: Mon, Apr 2 2012 6:09 pm
Subject: Re: JS.Packages file().styling()

Does it add a <link> tag to the page? Before or after the script?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Coglan  
View profile  
 More options Apr 2 2012, 6:13 pm
From: James Coglan <jcog...@gmail.com>
Date: Mon, 2 Apr 2012 23:13:49 +0100
Local: Mon, Apr 2 2012 6:13 pm
Subject: Re: JS.Packages file().styling()

On 2 April 2012 23:09, Anthony <draftoma...@gmail.com> wrote:

> Does it add a <link> tag to the page? Before or after the script?

It depends on the platform:
https://github.com/jcoglan/js.class/blob/master/source/package/loader...
https://github.com/jcoglan/js.class/blob/master/source/package/loader...

It's called from here in the package-loading code:
https://github.com/jcoglan/js.class/blob/master/source/package/packag...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony  
View profile  
 More options Apr 2 2012, 6:19 pm
From: Anthony <draftoma...@gmail.com>
Date: Mon, 2 Apr 2012 15:19:00 -0700 (PDT)
Subject: Re: JS.Packages file().styling()

Great, thanks very much.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »