TinySort just had a major release to v2. The jQuery dependency is now removed. So it is not a jQuery plugin anymore but a ‘standalone’ script without dependencies. It is also a fraction smaller and a bit faster.
TinySort now also has AMD support and it’s on CDN.
When building web applications a lot of times a certain elements style needs to be changed. Mostly you can suffice by using one of the Element.classList methods.
But sometimes you have to set an elements style directly (think of non-constant values like width, height, padding etc…). This is fine for single elements but when dealing with a bunch of them it feels wrong and slow having to loop through each of them.
So when developing I tend to use it for lots of stuff: quick login into a secure part, automatically fill forms with random data, altering data I get from some site… I even used it to load and initialize the level editor for a game I recently built.
Objects with multiple properties with each their own variable can get a bit messy. Here’s a nice solution to store multiple properties in a single variable.
Recently I migrated TinySort from Google Code to Github. I’m a real Git noob so I expected a full history migration to be a real pain in the ass. Plus I also wanted to move both the open and closed issues (since they correspond to the regression tests). Luckily it turned out to be a lot easier than I anticipated.