Skip to content

Commit

Permalink
Abort when no elements provided
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonOehlman committed Oct 20, 2011
1 parent 21a4e30 commit baf2f3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classtweak.js
@@ -1,4 +1,8 @@
function classtweak(elements, initAction, scope) {
// if elements is not defined, then return
if (! elements) {
return undefined;
} // if

// internals
var reSpaces = /[\s\,]+/,
Expand Down

0 comments on commit baf2f3a

Please sign in to comment.