Skip to content

Instantly share code, notes, and snippets.

@chrissiefken
Created March 6, 2014 21:50
Show Gist options
  • Select an option

  • Save chrissiefken/9400419 to your computer and use it in GitHub Desktop.

Select an option

Save chrissiefken/9400419 to your computer and use it in GitHub Desktop.
nuke: function(refrigerator) {
if (!(refrigerator instanceof Array)) refrigerator = new Array(refrigerator);
for (var indy in $pt) {
if ($.inArray(indy, refrigerator) < 0) $pt.removeItem(indy);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment