API documentation for base2 version 2.0

90 views
Skip to first unread message

Dean Edwards

unread,
Mar 23, 2011, 12:34:30 PM3/23/11
to base2-js
I posted a temporary hosting of the base2 documentation:

http://dean.edwards.name/temp/base2/doc/

You can browse the new API from here. It's 90% compatible with version
1.0 but there are some fundamental changes:

1. Packages now work in a totally different way
2. Map is removed (use Collection instead)
3. The JavaScript package is removed
4. All package names are now lower case
5. Module is renamed to Trait
6. base2.dom.bind is now in a separate file
7. Lots of new stuff :)

Let me know your thoughts. I'm happy to answer questions about the new code.

-dean

Stuart Langridge

unread,
Mar 23, 2011, 1:25:37 PM3/23/11
to base...@googlegroups.com, Dean Edwards
On Wed, Mar 23, 2011 at 4:34 PM, Dean Edwards <dean.e...@gmail.com> wrote:
> I posted a temporary hosting of the base2 documentation:
> http://dean.edwards.name/temp/base2/doc/

Quick thing about detect: what's the difference between
detect("!(style.borderRadius)") and !detect("(style.borderRadius)") ?
That is: why does detect need the ! to invert the return value? (The
dynamic object detection needs it, I suppose, but it feels a bit
weird.)

sil

--
New Year's Day --
everything is in blossom!
I feel about average.
   -- Kobayashi Issa

Dean Edwards

unread,
Mar 23, 2011, 3:12:46 PM3/23/11
to Stuart Langridge, base2-js
On 23/03/2011 18:40, Stuart Langridge wrote:
>>> Quick thing about detect: what's the difference between
>>> detect("!(style.borderRadius)") and !detect("(style.borderRadius)") ?
>>> That is: why does detect need the ! to invert the return value? (The
>>> dynamic object detection needs it, I suppose, but it feels a bit
>>> weird.)
>>
>> It's purely for the dynamic detection bit.
>
> Aha, that's what I figured; I just wondered if its use in the other
> examples was because I was missing something clever :)
>

Responding to you so that my answer is seen on the list. Forgot to click
"reply to all". :)

-dean

Marijn

unread,
Apr 11, 2012, 7:51:14 AM4/11/12
to base...@googlegroups.com
Hi Dean,

This is giving me a 404 :-(
Any chance I could grab this somewhere else?

Cheers,

Marijn
Reply all
Reply to author
Forward
0 new messages