Fixed YUI 3.12.0
Merge pull request #755 from pedroresende/FixYUI

Fixed YUI 3.12.0 due to inconsistencies