mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Make simple NodeLists use Vec.
This commit is contained in:
parent
a1ec0cec11
commit
674fd893cb
2 changed files with 4 additions and 4 deletions
|
@ -608,7 +608,7 @@ impl Document {
|
|||
}
|
||||
|
||||
pub fn createNodeList(&self, callback: |node: &JS<Node>| -> bool) -> JS<NodeList> {
|
||||
let mut nodes: ~[JS<Node>] = ~[];
|
||||
let mut nodes = vec!();
|
||||
match self.GetDocumentElement() {
|
||||
None => {},
|
||||
Some(root) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue