diff options
author | Armen Kesablyan | 2012-02-15 14:28:21 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-15 14:28:21 -0800 |
commit | 2a5484af59544a9dfdda854d707455f08a24fe69 (patch) | |
tree | 31055dd7a5548ab307a094d02be7012c77eeb4b9 /node_modules/montage/core/shim/string.js | |
parent | bb4da39a73cbd6fbe83f3b7c9ed5ae60fe58dd6b (diff) | |
download | ninja-2a5484af59544a9dfdda854d707455f08a24fe69.tar.gz |
Latest Montage Updates 0.6 Fixes
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules/montage/core/shim/string.js')
-rwxr-xr-x | node_modules/montage/core/shim/string.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/montage/core/shim/string.js b/node_modules/montage/core/shim/string.js index 1b71cec3..52f89710 100755 --- a/node_modules/montage/core/shim/string.js +++ b/node_modules/montage/core/shim/string.js | |||
@@ -63,4 +63,19 @@ Object.defineProperties(String.prototype, /** @lends external:String.prototype#* | |||
63 | 63 | ||
64 | }); | 64 | }); |
65 | 65 | ||
66 | /** | ||
67 | Shim implementation of String.isString() for browsers that don't yet support it. | ||
68 | @function external:String.isString() | ||
69 | @param {object} obj The object to determine if its a String. | ||
70 | @returns {boolean} Object.prototype.toString.call(obj) === "[object String]" | ||
71 | */ | ||
72 | if (!String.isString) { | ||
73 | Object.defineProperty(String, "isString", { | ||
74 | value: function(obj) { | ||
75 | return Object.prototype.toString.call(obj) === "[object String]"; | ||
76 | } | ||
77 | }); | ||
78 | } | ||
79 | |||
80 | |||
66 | 81 | ||