mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-11-04 09:33:00 +00:00 
			
		
		
		
	Ceding to JSHint's suggestions
This commit is contained in:
		@@ -333,10 +333,9 @@ RawNode.prototype.renderInDom = function(domNode) {
 | 
				
			|||||||
Static method to construct a label
 | 
					Static method to construct a label
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
var LabelNode = function(type,value,classes) {
 | 
					var LabelNode = function(type,value,classes) {
 | 
				
			||||||
/*jshint newcap: false */
 | 
					 | 
				
			||||||
    classes = (classes || []).slice(0);
 | 
					    classes = (classes || []).slice(0);
 | 
				
			||||||
    classes.push("label");
 | 
					    classes.push("label");
 | 
				
			||||||
    return ElementNode("span",{
 | 
					    return new ElementNode("span",{
 | 
				
			||||||
        "class": classes,
 | 
					        "class": classes,
 | 
				
			||||||
		"data-tw-label-type": type
 | 
							"data-tw-label-type": type
 | 
				
			||||||
    },value);
 | 
					    },value);
 | 
				
			||||||
@@ -346,17 +345,16 @@ var LabelNode = function(type,value,classes) {
 | 
				
			|||||||
Static method to construct a split label
 | 
					Static method to construct a split label
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
var SplitLabelNode = function(type,left,right,classes) {
 | 
					var SplitLabelNode = function(type,left,right,classes) {
 | 
				
			||||||
/*jshint newcap: false */
 | 
					 | 
				
			||||||
	classes = (classes || []).slice(0);
 | 
						classes = (classes || []).slice(0);
 | 
				
			||||||
	classes.push("splitLabel");
 | 
						classes.push("splitLabel");
 | 
				
			||||||
	return ElementNode("span",{
 | 
						return new ElementNode("span",{
 | 
				
			||||||
		"class": classes
 | 
							"class": classes
 | 
				
			||||||
	},[
 | 
						},[
 | 
				
			||||||
		ElementNode("span",{
 | 
							new ElementNode("span",{
 | 
				
			||||||
			"class": ["splitLabelLeft"],
 | 
								"class": ["splitLabelLeft"],
 | 
				
			||||||
			"data-tw-label-type": type
 | 
								"data-tw-label-type": type
 | 
				
			||||||
		},left),
 | 
							},left),
 | 
				
			||||||
		ElementNode("span",{
 | 
							new ElementNode("span",{
 | 
				
			||||||
			"class": ["splitLabelRight"]
 | 
								"class": ["splitLabelRight"]
 | 
				
			||||||
		},right)
 | 
							},right)
 | 
				
			||||||
	]);
 | 
						]);
 | 
				
			||||||
@@ -366,7 +364,6 @@ var SplitLabelNode = function(type,left,right,classes) {
 | 
				
			|||||||
Static method to construct a slider
 | 
					Static method to construct a slider
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
var SliderNode = function(type,label,tooltip,isOpen,children) {
 | 
					var SliderNode = function(type,label,tooltip,isOpen,children) {
 | 
				
			||||||
/*jshint newcap: false */
 | 
					 | 
				
			||||||
	var attributes = {
 | 
						var attributes = {
 | 
				
			||||||
		"class": "tw-slider",
 | 
							"class": "tw-slider",
 | 
				
			||||||
		"data-tw-slider-type": type
 | 
							"data-tw-slider-type": type
 | 
				
			||||||
@@ -375,17 +372,17 @@ var SliderNode = function(type,label,tooltip,isOpen,children) {
 | 
				
			|||||||
		attributes.alt = tooltip;
 | 
							attributes.alt = tooltip;
 | 
				
			||||||
		attributes.title = tooltip;
 | 
							attributes.title = tooltip;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return ElementNode("span",
 | 
						return new ElementNode("span",
 | 
				
			||||||
		attributes,
 | 
							attributes,
 | 
				
			||||||
		[
 | 
							[
 | 
				
			||||||
			ElementNode("a",
 | 
								new ElementNode("a",
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					"class": ["tw-slider-label"]
 | 
										"class": ["tw-slider-label"]
 | 
				
			||||||
				},[
 | 
									},[
 | 
				
			||||||
					TextNode(label)
 | 
										new TextNode(label)
 | 
				
			||||||
				]
 | 
									]
 | 
				
			||||||
			),
 | 
								),
 | 
				
			||||||
			ElementNode("div",
 | 
								new ElementNode("div",
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					"class": ["tw-slider-body"],
 | 
										"class": ["tw-slider-body"],
 | 
				
			||||||
					"style": {"display": isOpen ? "block" : "none"}
 | 
										"style": {"display": isOpen ? "block" : "none"}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user