mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Removed "ajaxify" from DefaultDOMPropertyConfig
The `"ajaxify"` attribute is Facebook-specific and does not belong in this repo.
This commit is contained in:
committed by
Paul O’Shannessy
parent
58de758a32
commit
ab00f8d15c
@@ -36,7 +36,6 @@ var DefaultDOMPropertyConfig = {
|
||||
accessKey: null,
|
||||
accept: null,
|
||||
action: null,
|
||||
ajaxify: MUST_USE_ATTRIBUTE,
|
||||
allowFullScreen: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
|
||||
allowTransparency: MUST_USE_ATTRIBUTE,
|
||||
alt: null,
|
||||
|
||||
@@ -127,9 +127,9 @@ describe('DOMPropertyOperations', function() {
|
||||
});
|
||||
|
||||
it('should set values as attributes if necessary', function() {
|
||||
DOMPropertyOperations.setValueForProperty(stubNode, 'ajaxify', '#');
|
||||
expect(stubNode.getAttribute('ajaxify')).toBe('#');
|
||||
expect(stubNode.ajaxify).toBeUndefined();
|
||||
DOMPropertyOperations.setValueForProperty(stubNode, 'role', '#');
|
||||
expect(stubNode.getAttribute('role')).toBe('#');
|
||||
expect(stubNode.role).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should remove for falsey boolean properties', function() {
|
||||
|
||||
Reference in New Issue
Block a user