Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Nov 27, 2013
  1. Fix typo.

    authored
  2. Update byline and version number.

    authored
    Now at verion 0.5.
  3. Merge branch 'master' of github.com:josephschmitt/Clamp.js

    authored
    # By Ned Baldessin
    # Via Joseph J. Schmitt (1) and Ned Baldessin (1)
    * 'master' of github.com:josephschmitt/Clamp.js:
      Fix: only truncate elements that need to be (…and don't apply an
    ellipsis to elements that are short enough to fit in the available
    space).
    
    Conflicts:
    	clamp.js
  4. Add support for submitting a custom truncation character and truncati…

    authored
    …on HTML.
    
    The truncation character is the character used at the end after
    clamping has been performed. By default it’s an ellipsis. The
    truncationHTML property allows you to insert arbitrary HTML before your
    truncation character. Both of these options require you to turn
    useNativeClamp off.
  5. If using javascript-based clamping, return object with clamped and or…

    authored
    …iginal values
    
    If you set useNativeClamp to false, the $clamp function now returns an
    object with two values: clamped and original. clamped contains the
    clamped text of the node, while original is a copy of the original,
    unclamped text.
Commits on Nov 7, 2011
  1. Merge pull request #2 from nedbaldessin/master

    authored
    One line fix to avoid adding an ellipsis to elements that don't need to be truncated.
  2. @nedbaldessin

    Fix: only truncate elements that need to be (…and don't apply an elli…

    nedbaldessin authored
    …psis to elements that are short enough to fit in the available space).
Commits on Oct 12, 2011
  1. Update to version 0.4

    authored
Commits on Oct 11, 2011
  1. Update verion to 0.3

    authored
  2. Update minified verion to 0.3

    Joseph Schmitt authored
Commits on Jan 18, 2011
  1. Updated minified JS. Updated version to 0.2. Updated documentation to…

    authored
    … (attempt to) explain the new splitOnChars option.
  2. Updated comment.

    authored
  3. Added more default characters to split on. Now, by default, splits on…

    authored
    … sentences (periods), hypens, en-dashes, em-dashes, and words (spaces).
  4. Major structural changes and performance improvements. Supports chunk…

    authored
    …ing an element by any kind of character (set to space and period by default). This speeds up removal by chunking up by larger sections (such as sentences and words) instead of just character-by-character.
  5. Performance improvement. Removing words first until the height fits, …

    authored
    …then adding the last word back and removing character-by-character only on that last word until it fits.
Commits on Jan 7, 2011
  1. No commit message

    authored
  2. No commit message

    authored
  3. No commit message

    authored
  4. No commit message

    authored
  5. No commit message

    authored
  6. No commit message

    authored
  7. Formatting README.

    authored
  8. More formatting.

    authored
  9. Formatting

    authored
  10. Renamed README

    authored
  11. Added minified version.

    authored
Something went wrong with that request. Please try again.