Permalink
Switch branches/tags
Nothing to show
Commits on Nov 27, 2013
  1. Fix typo.

    committed Nov 27, 2013
  2. Update byline and version number.

    Now at verion 0.5.
    committed Nov 27, 2013
  3. Merge branch 'master' of github.com:josephschmitt/Clamp.js

    # 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
    committed Nov 27, 2013
  4. Add support for submitting a custom truncation character and truncati…

    …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.
    committed Nov 27, 2013
  5. If using javascript-based clamping, return object with clamped and or…

    …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.
    committed Nov 27, 2013
Commits on Nov 7, 2011
  1. Merge pull request #2 from nedbaldessin/master

    One line fix to avoid adding an ellipsis to elements that don't need to be truncated.
    committed Nov 7, 2011
  2. Fix: only truncate elements that need to be (…and don't apply an elli…

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

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

    committed Oct 11, 2011
  2. Update minified verion to 0.3

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

    … (attempt to) explain the new splitOnChars option.
    committed Jan 18, 2011
  2. Updated comment.

    committed Jan 18, 2011
  3. Added more default characters to split on. Now, by default, splits on…

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

    …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.
    committed Jan 18, 2011
  5. Performance improvement. Removing words first until the height fits, …

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

    committed Jan 7, 2011
  2. No commit message

    committed Jan 7, 2011
  3. No commit message

    committed Jan 7, 2011
  4. No commit message

    committed Jan 7, 2011
  5. No commit message

    committed Jan 7, 2011
  6. No commit message

    committed Jan 7, 2011
  7. Formatting README.

    committed Jan 7, 2011
  8. More formatting.

    committed Jan 7, 2011
  9. Formatting

    committed Jan 7, 2011
  10. Renamed README

    committed Jan 7, 2011
  11. Added minified version.

    committed Jan 7, 2011