Remove filterAttributes.js
This is no longer needed because of https://github.com/facebook/react/commit/089a494a1f0cc1892f1525fd746bac10c5a55175 mutateHTMLNodeWithMarkup.js was the only one using it.
Cheng Lou committed
May 15, 2014 at 14:14 UTC
80a5463a2c53391953cab29cbe9a939f4607c54d
1 file changed
-45
src/browser/ui/dom/filterAttributes.js
deleted
-45
@@ -1,45 +0,0 @@
1
-/**
2
- * Copyright 2013-2014 Facebook, Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- *
16
- * @providesModule filterAttributes
17
- * @typechecks static-only
18
- */
19
-
20
-/*jslint evil: true */
21
-
22
-'use strict';
23
-
24
-/**
25
- * Like filter(), but for a DOM nodes attributes. Returns an array of
26
- * the filter DOMAttribute objects. Does some perf related this like
27
- * caching attributes.length.
28
- *
29
- * @param {DOMElement} node Node whose attributes you want to filter
30
- * @return {array} array of DOM attribute objects.
31
- */
32
-function filterAttributes(node, func, context) {
33
- var attributes = node.attributes;
34
- var numAttributes = attributes.length;
35
- var accumulator = [];
36
- for (var i = 0; i < numAttributes; i++) {
37
- var attr = attributes.item(i);
38
- if (func.call(context, attr)) {
39
- accumulator.push(attr);
40
- }
41
- }
42
- return accumulator;
43
-}
44
-
45
-module.exports = filterAttributes;