chrome_style_issue_2.txt
1 |
=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js' |
---|---|
2 |
--- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js 2015-12-17 20:00:50 +0000 |
3 |
+++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js 2015-12-22 18:44:44 +0000 |
4 |
@@ -182,7 +182,7 @@ |
5 |
|
6 |
/** |
7 |
* Returns the string representation of all own object's properties in the following format: |
8 |
- * [key1 : value1[; key2 : value2] ...] |
9 |
+ * [key1 : value1[; key2 : value2] ...], where value1, value2, ... are strings or numbers. |
10 |
* |
11 |
* @param {Object} styleObj |
12 |
* The custom object that holds the target style properties. |
13 |
@@ -201,7 +201,7 @@ |
14 |
{ |
15 |
if (styleObj.hasOwnProperty(prop)) |
16 |
{ |
17 |
- if (typeof styleObj[prop] !== "object") |
18 |
+ if (typeof styleObj[prop] === "string" || typeof styleObj[prop] === "number") |
19 |
{ |
20 |
clsDef += (prop + ":" + styleObj[prop] + ";"); |
21 |
} |
22 |
|