Skip to content

Instantly share code, notes, and snippets.

@theotherzach
Last active August 29, 2015 13:56
Show Gist options
  • Save theotherzach/9021594 to your computer and use it in GitHub Desktop.
Save theotherzach/9021594 to your computer and use it in GitHub Desktop.
window.app = window.app || {};
(function() {
"use strict";
function truncate(div) {
var excess = div.children('ul').children('li').slice(5);
}
function verb(elements) {
elements.each(function(){
truncate(this);
});
}
app.completedExercisesNoun = {
verb: verb,
}
});
$(document).ready(function() {
app.completedExercisesNoun.verb($(".completed .exercises"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment