Skip to content

Commit

Permalink
Update date and publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Nov 10, 2010
1 parent 2a3406a commit 5eb52c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions articles/traitsjs.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Title: Creating safe and composable 'mixins' with traits.js
Author: Tom Van Cutsem
Date: Tue Nov 9 2010 20:08:54 GMT+0100
Date: Wed Nov 10 2010 10:33:29 GMT-0800 (PST)

In this article I will introduce [_traits.js_](http://traitsjs.org), a small library to define, compose and instantiate traits. Traits are reusable sets of properties and form an alternative to multiple inheritance or mixins.

Expand Down Expand Up @@ -257,4 +257,4 @@ In the introduction I mentioned that _traits.js_ is minimal. All in all, you onl
- Use `Trait.resolve` to create a trait with renamed or excluded properties, in order to avoid conflicts and disambiguate property names.
- Use `Trait.create(prototype, trait)` to instantiate a trait into a new object. If you require the trait instance to remain extensible, use `Object.create` instead.

That's it. There isn't much more to it. The complete API and another tutorial can be found on the [_traits.js_ home page](http://traitsjs.org). If you want to peek under the hood of the library and know more about the format in which traits are represented, [this page](http://code.google.com/p/es-lab/wiki/Traits#Traits_as_Property_Maps) provides all the details.
That's it. There isn't much more to it. The complete API and another tutorial can be found on the [_traits.js_ home page](http://traitsjs.org). If you want to peek under the hood of the library and know more about the format in which traits are represented, [this page](http://code.google.com/p/es-lab/wiki/Traits#Traits_as_Property_Maps) provides all the details.

0 comments on commit 5eb52c4

Please sign in to comment.