From 628963d838fe71e27533adf19189f8898e33db3b Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 30 Mar 2012 13:47:54 +0100 Subject: [PATCH] Fixed problem with `class` keyword --- js/macros/command.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/macros/command.js b/js/macros/command.js index e8dd06dd8..2ed96577f 100644 --- a/js/macros/command.js +++ b/js/macros/command.js @@ -4,7 +4,7 @@ title: js/macros/command.js \*/ (function(){ -/*jslint node: true */ +/*jslint node: true, browser: true */ "use strict"; var Renderer = require("../Renderer.js").Renderer; @@ -30,9 +30,9 @@ exports.macro = { execute: function() { var attributes = {}; if(this.hasParameter("class")) { - attributes["class"] = this.params.class.split(" "); + attributes["class"] = this.params["class"].split(" "); } - return [Renderer.ElementNode("button",attributes,[Renderer.TextNode(this.params.label)])] + return [Renderer.ElementNode("button",attributes,[Renderer.TextNode(this.params.label)])]; } };