1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 02:20: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(){ (function(){
/*jslint node: true */ /*jslint node: true, browser: true */
"use strict"; "use strict";
var Renderer = require("../Renderer.js").Renderer; var Renderer = require("../Renderer.js").Renderer;
@ -30,9 +30,9 @@ exports.macro = {
execute: function() { execute: function() {
var attributes = {}; var attributes = {};
if(this.hasParameter("class")) { 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)])];
} }
}; };