Make simple NodeLists use Vec.

This commit is contained in:
Ms2ger 2014-04-26 11:33:52 +02:00
parent a1ec0cec11
commit 674fd893cb
2 changed files with 4 additions and 4 deletions

View file

@ -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) => {