mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-02 22:42:46 +00:00
More JSHint hints
This commit is contained in:
parent
103a9a4d7f
commit
94a84d8bc6
@ -6,7 +6,7 @@ Renderer objects
|
|||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
/*jshint node: true, browser: true, newcap: true */
|
/*jshint node: true, browser: true */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var utils = require("./Utils.js");
|
var utils = require("./Utils.js");
|
||||||
@ -339,6 +339,7 @@ RawNode.prototype.refreshInDom = function(changes) {
|
|||||||
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 ElementNode("span",{
|
||||||
@ -351,6 +352,7 @@ 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 ElementNode("span",{
|
||||||
@ -370,6 +372,7 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user