Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-vanilla
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
react-vanilla
Commits
ca05cf30
Commit
ca05cf30
authored
Jul 08, 2026
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for function-based document onload shorthand
Introduced a shorthand to handle `DOMContentLoaded` or `load` events when a function is passed as the selector in `DOM.js`
parent
d777739f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
DOM.js
DOM.js
+1
-1
build.js
build.js
+3
-3
No files found.
DOM.js
View file @
ca05cf30
...
@@ -142,7 +142,7 @@ NS.apply = function(a,b) {
...
@@ -142,7 +142,7 @@ NS.apply = function(a,b) {
if
(
style
){
if
(
style
){
if
(
typeof
style
===
'string'
){
if
(
typeof
style
===
'string'
){
el
.
style
=
style
;
el
.
style
.
cssText
=
style
;
}
else
{
}
else
{
for
(
i
in
style
){
for
(
i
in
style
){
var
s
=
el
.
style
;
var
s
=
el
.
style
;
...
...
build.js
View file @
ca05cf30
...
@@ -5,9 +5,9 @@ const {minify} = require("terser"),
...
@@ -5,9 +5,9 @@ const {minify} = require("terser"),
DOM
=
[
'DOM.js'
],
DOM
=
[
'DOM.js'
],
rDOM
=
DOM
.
concat
(
'Observer.js'
,
'Store.js'
,
'Transform.js'
,
'Ajax.js'
,
'Cmp.js'
),
rDOM
=
DOM
.
concat
(
'Observer.js'
,
'Store.js'
,
'Transform.js'
,
'Ajax.js'
,
'Cmp.js'
),
dir
=
'build'
,
dir
=
'build'
,
header
=
`/* Vanilla.js
Reactivit
y by Ivan Kubota.
header
=
`/* Vanilla.js
reactive librar
y by Ivan Kubota.
*
©
Form.dev 2012—
${(
new
Date
()).
getFullYear
()}
* Form.dev 2012—
${(
new
Date
()).
getFullYear
()}
* License: MPL-2.0
for not commercial use and all projects that involves me
* License: MPL-2.0
*/
*/
`
;
`
;
build
=
{
build
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment