Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Heusschen committed Feb 5, 2019
1 parent 0cc9e1d commit 1d1e3e8
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 108 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The dotdotdot javascript plugin is licensed under the [CC-BY-NC-4.0 license](htt
You can [purchase a license](http://dotdotdot.frebsite.nl#download) if you want to use it in a commercial project.

### Browser support
The dotdotdot javascript plugin uses ES6, meaning IE11 and earlier are not supported.
If you need support for IE11, use the legacy (jQuery) version: [version 3.2.3](https://github.com/FrDH/dotdotdot-JS/releases/tag/v3.2.3).
The dotdotdot javascript plugin uses ES5, meaning IE10 and earlier are not supported.
If you need support for IE10, use the legacy (jQuery) version: [version 3.2.3](https://github.com/FrDH/dotdotdot-JS/releases/tag/v3.2.3).

### Development
This project uses [Gulp](http://gulpjs.com/) to minify the JS file.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "dotdotdot-js",
"version" : "4.0.1",
"version" : "4.0.2",
"authors" : "Fred Heusschen <[email protected]>",
"license" : "CC-BY-NC-4.0",
"description" : "Dotdotdot is a javascript plugin for truncating multiple line content with an ellipsis.",
Expand Down
4 changes: 2 additions & 2 deletions dist/dotdotdot.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const gulp = require( 'gulp' ),

// Default task 'gulp': Runs JS tasks
const js = ( cb ) => {
return gulp.src( 'src/dotdotdot.ts' )
return gulp.src( 'src/*.ts' )
.pipe( typescript({
"target": "es6"
"target": "es5"
}) )
.pipe( terser({
output: {
Expand All @@ -25,9 +25,7 @@ exports.default = js;

// Watch task 'gulp watch': Starts a watch on JS tasks
const watch = ( cb ) => {
gulp.watch( 'src/*.ts', function( cb ) {
js();
cb();
});
gulp.watch( 'src/*.ts', js );
cb();
};
exports.watch = watch;
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ <h3>Toggle full story</h3>
*/
$('#xmpl-2')
.find( 'li' )
.first()
.each(
function()
{
Expand All @@ -180,6 +179,9 @@ <h3>Toggle full story</h3>
// Add a slash before the ellipsis
ellipsis: '/\u2026',

// Adjustment for the top- and bottom padding.
tolerance: 20,

// Prevents the <span class="file" /> from being removed
keep: '.file'
});
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dotdotdot-js",
"version": "4.0.1",
"version": "4.0.2",
"main": "dist/dotdotdot.js",
"author": "Fred Heusschen <[email protected]>",
"license": "CC-BY-NC-4.0",
Expand Down
Loading

0 comments on commit 1d1e3e8

Please sign in to comment.