viralpatel/jquery.shorten — pull request #3 by jeffAwesome (2013-05-29 06:09:32+00:00)
Title: Ie 7 fix

I am using this on a corporate site and found that some of my clients were seeing undefined placed on the screen.

I did a lot of research and finally found the issue its an issue with IE7. IE 7 doesn't allow you to reference string characters using the []. But you can use .charAt().

I've also updated a variable that wasn't declared as well as added some brackets that weren't added.. this was mostly for myself to help understand what was going on.

After my updates I've tested on all browsers and its working great in all conditions.