[gjs] Gio: call name() on the correct variable
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Gio: call name() on the correct variable
- Date: Tue, 4 Dec 2012 18:02:08 +0000 (UTC)
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]