[gjs] Gio: call name() on the correct variable



commit 2a3f72b1d9d4425e1a5e8c4fbaf2c89617cc2c27
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Dec 4 12:59:10 2012 -0500

    Gio: call name() on the correct variable
    
    "value" can either be a string or a XML object; "xml" is guaranteed to
    be an XML object.

 modules/overrides/Gio.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/overrides/Gio.js b/modules/overrides/Gio.js
index 11d8d96..679be6f 100644
--- a/modules/overrides/Gio.js
+++ b/modules/overrides/Gio.js
@@ -227,7 +227,7 @@ function _newInterfaceInfo(value) {
         throw TypeError('Invalid type ' + Object.prototype.toString.call(value));
 
     var node;
-    if (value.name() == 'interface') {
+    if (xml.name() == 'interface') {
         // wrap inside a node
         node = <node/>;
         node.node += xml;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]