"use strict" and other linty fixes

This commit is contained in:
Isiah Meadows 2017-03-02 07:26:52 -05:00
parent aaa6de784b
commit 1cc5fa5ba7
50 changed files with 463 additions and 478 deletions

View file

@ -1,24 +1,26 @@
"use strict"
module.exports = [
{
kind: 'POJO',
kind: "POJO",
create: function(methods) {
var res = {view: function() {return {tag:'div'}}}
var res = {view: function() {return {tag:"div"}}}
Object.keys(methods || {}).forEach(function(m){res[m] = methods[m]})
return res
}
}, {
kind: 'constructible',
kind: "constructible",
create: function(methods) {
function res(){}
res.prototype.view = function() {return {tag:'div'}}
res.prototype.view = function() {return {tag:"div"}}
Object.keys(methods || {}).forEach(function(m){res.prototype[m] = methods[m]})
return res
}
}, {
kind: 'closure',
kind: "closure",
create: function(methods) {
return function() {
var res = {view: function() {return {tag:'div'}}}
var res = {view: function() {return {tag:"div"}}}
Object.keys(methods || {}).forEach(function(m){res[m] = methods[m]})
return res
}