fix an error in ie8
Merge pull request #786 from lonelyplanet/chee/transform()

fix an error in ie8