lemonadejs
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "lemonadejs", | ||
"title": "Micro two-way binding and hook JS library.", | ||
"title": "Micro two-way binding and hook JavaScript vanilla library.", | ||
"description": "Lemonade is a lightweight, micro vanilla javascript library to create quick and reusable JS components without dependencies.", | ||
@@ -16,3 +16,3 @@ "author": { | ||
"main": "dist/lemonade.js", | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
@@ -1,2 +0,1 @@ | ||
# fastjs | ||
Two way binding and hooks vanilla tiny JS library. | ||
# lemonadejs |
/** | ||
* Fastjs v1.0.1 | ||
* lemonadejs v1.0.2 | ||
* | ||
* Author: Paul Hodel <paul.hodel@gmail.com> | ||
* Website: https://bossanova.uk/fastjs/ | ||
* Website: https://bossanova.uk/lemonadejs/ | ||
* Description: Create amazing web based reusable components. | ||
@@ -14,3 +14,3 @@ * | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
global.fastjs = factory(); | ||
global.lemonade = factory(); | ||
}(this, (function () { | ||
@@ -20,5 +20,5 @@ | ||
var fastjs = {}; | ||
var lemonadejs = {}; | ||
fastjs.render = function(o, el, self) { | ||
lemonadejs.render = function(o, el, self) { | ||
if (! (el instanceof Element || el instanceof HTMLDocument)) { | ||
@@ -36,3 +36,3 @@ console.log('DOM element given is not valid') | ||
} else { | ||
if (fastjs.isClass(o)) { | ||
if (lemonadejs.isClass(o)) { | ||
var o = new o(); | ||
@@ -54,3 +54,3 @@ el.appendChild(o.create()); | ||
fastjs.element = (function() { | ||
lemonadejs.element = (function() { | ||
/** | ||
@@ -328,3 +328,3 @@ * Create a new component | ||
} | ||
if (fastjs.isClass(m)) { | ||
if (lemonadejs.isClass(m)) { | ||
var instance = new m(); | ||
@@ -342,7 +342,7 @@ element.appendChild(instance.create()); | ||
fastjs.isClass = function(func) { | ||
lemonadejs.isClass = function(func) { | ||
return typeof func === 'function' && /^class\s/.test(Function.prototype.toString.call(func)); | ||
} | ||
fastjs.component = class { | ||
lemonadejs.component = class { | ||
constructor() { | ||
@@ -352,3 +352,3 @@ } | ||
create() { | ||
var element = fastjs.element(this.render(), this); | ||
var element = lemonadejs.element(this.render(), this); | ||
@@ -363,3 +363,3 @@ if (typeof(this.onload) == 'function') { | ||
return fastjs; | ||
return lemonadejs; | ||
}))); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18221
333
1
1