helper mixins that extend elements to handle special data-properties
fooloomanzoo / property-mixins Goto Github PK
View Code? Open in Web Editor NEWmixins that extend elements to handle special data-properties
mixins that extend elements to handle special data-properties
helper mixins that extend elements to handle special data-properties
Dear Fooloomanzoo,
Thank you so much for contributing these great packages to the community!
I was wondering if you could add the License file for property-mixins folder as well.
Sincerely,
Steven
if datetime var on that line is null(wich in javascript is also an object typeof null == "object"
), this throws an error because getData on the if statement dont exists on null
will summit pr with fix soon
property-mixins/datetime-mixin.html
Line 567 in 61c3fc9
In the datetime-mixin
there is something like:
...
if (isNaN(d)) {
d = new Date();
}
d.setMilliseconds(milliseconds || 0);
d.setSeconds(seconds || 0);
d.setMinutes(minutes || 0);
d.setHours(hours || 0);
if (day !== undefined) {
d.setDate(day);
}
if (month !== undefined) {
d.setMonth(month - 1);
}
...
Above calculations are not working as expected under iOS Chrome version 63.0.3239.132, eg:
If I want to set 2018-01-29
and today is 2018-02-05
first the date is initialized with new Date() to current date. After that the day part is updated to be equal 29
but due to Date
nature d
object is actually set to be 2018-03-01
, and in the end the month part is set. The final value of d
is equal 2018-01-01
.
The fast fix is to change the order d.setMonth()
and than d.setDay()
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.