From 3f7e7dd28c56703163069065d9197775d016ff95 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 2 Oct 2010 00:47:10 +1000 Subject: [PATCH] Fixed bugs in the JavaScript code in the documentation. --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index a65c094..7e2b1ca 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -111,7 +111,7 @@ What you can do with Classy: var MyClass = Class.$extend({ __init__ : function() { alert('called'); }, - toString() : function() { + toString : function() { return this.value; }) }); @@ -173,7 +173,7 @@ What you can do with Classy: var UpdateMixin = { update : function(options) { - var (var key in options) + for (var key in options) this[key] = options[key]; } };