Builder/Provider/File/Base.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 27 Jul 2010 07:23:03 +0000 (15:23 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 27 Jul 2010 07:23:03 +0000 (15:23 +0800)
Builder/Provider/File/Base.js

index 5972c24..0e75087 100644 (file)
@@ -342,7 +342,7 @@ Base = XObject.define(
                 if (!this.doubleStringProps) {
                     els.push(left + JSON.stringify(obj[i]));
                 }
-                if (this.doubleStringProps.indexOf(i)) {
+                if (this.doubleStringProps.indexOf(i) > -1) {
                     els.push(left + JSON.stringify(obj[i]));
                     continue;
                 }