A better way to do that would be to split() it first on '=' then, split() the left side on '.' and iterate the results. You don't want to evaluate just anything anyone puts in that second argument.
Consider that the "black" portion of that argument actually comes from user input and that you were passed instead:
black"); alert('This framework is awesome!
Try eval'ing that.