Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
MelizzaP committed Jul 13, 2016
1 parent 026a998 commit 3bfa17c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bulbs/javascript/bulbs-js/ellipses.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';
var ddd = require('jquery.dotdotdot');
var $ = require('jqeury');

var Ellipsis = {
ellipsisize: function(jquerySelector) {
$(jquerySelector).ddd({
ellipsis: '...',
wrap: 'letter',
watch: true,
height: null,
tolerance: 0,
lastCharacter : { remove: [' ', '.'] }
});
},
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
"scripts": {
"karma": "karma start --single-run",
"test": "karma start"
},
"dependencies": {
"dotdotdot": "^1.7.0"
}
}

0 comments on commit 3bfa17c

Please sign in to comment.