ENYO-3391: replace function resize by resizeOnEvent
Merge pull request #739 from enyojs/ENYO-3391

ENYO-3391: replace function resize by resizeOnEvent