adapt to class-based DOM
Merge pull request #1 from gyugyu/master

adapt to class-based DOM