Builder/Provider/Palete/Gtk.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 17 May 2010 07:35:43 +0000 (15:35 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 17 May 2010 07:35:43 +0000 (15:35 +0800)
Builder/Provider/Palete/Gtk.js

index 75422bf..733dce4 100644 (file)
@@ -540,7 +540,7 @@ Gtk = XObject.define(
             var inherits = [ cname ];
             inherits.push.apply(inherits, this.getPropertiesFor(cname,'inherits'));
             funcs.forEach(function(m) {
-                if (m.params.length && typeof(m.params[0].type) == 'string') &&
+                if (m.params.length && (typeof(m.params[0].type) == 'string') &&
                     inherits.indexOf(m.params[0].type) > -1) {
                     ret.push(m);
                 }