diff options
author | Eric Guzman | 2012-02-16 14:20:40 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-16 14:20:40 -0800 |
commit | 6960f62a84b946c92a59e5f5dc537a818f9f62b8 (patch) | |
tree | 49cbff3fdd8dab11846e5a278406915ec0ec1508 /node_modules/montage/core/shim | |
parent | 82b1a273219f0ae3d119e156c7acccdbe478f441 (diff) | |
parent | 81942bd52f0713c9ff5d479ebd12fce577f45e45 (diff) | |
download | ninja-6960f62a84b946c92a59e5f5dc537a818f9f62b8.tar.gz |
Merge branch 'refs/heads/master' into PresetsPanel
Diffstat (limited to 'node_modules/montage/core/shim')
-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 | ||