Permalink
Browse files

Update date and publish.

  • Loading branch information...
1 parent 2a3406a commit 5eb52c4fa3f41ea7213b0fdd12e75d03609ff53c @creationix committed Nov 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 articles/traitsjs.markdown
View
4 articles/traitsjs.markdown
@@ -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.
@@ -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.