Make Inline "with" hook compatible with old and new versions.
Merge pull request #4 from mohawk2/master

Make Inline "with" hook compatible with old and new versions.