1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 01:50:28 +00:00

Fixed problem with class keyword

This commit is contained in:
Jeremy Ruston 2012-03-30 13:47:54 +01:00
parent a0c53c6661
commit 628963d838

View File

@ -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)])];
}
};