can.Components ignores attributes containing "id" #693

Closed
whitecolor opened this Issue Jan 23, 2014 · 1 comment

Comments

Projects
None yet
3 participants
@whitecolor
Contributor

whitecolor commented Jan 23, 2014

can.Component ignores wrong attributes:

var ignoreAttributesRegExp = /dataViewId|class|id/i

this:

ignoreAttributesRegExp.test(name)

will be true for all names that contain "id" letters inside (as well "class").

this will do the work

/^(dataViewId|class|id)$/i

@justinbmeyer justinbmeyer added the Bug label Feb 7, 2014

@justinbmeyer justinbmeyer added this to the 2.1.0 milestone Feb 7, 2014

@daffl

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Feb 10, 2014

Contributor

Fixed via 4815551

Contributor

daffl commented Feb 10, 2014

Fixed via 4815551

@daffl daffl closed this Feb 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment