aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/core/shim
diff options
context:
space:
mode:
authorEric Guzman2012-02-16 14:20:40 -0800
committerEric Guzman2012-02-16 14:20:40 -0800
commit6960f62a84b946c92a59e5f5dc537a818f9f62b8 (patch)
tree49cbff3fdd8dab11846e5a278406915ec0ec1508 /node_modules/montage/core/shim
parent82b1a273219f0ae3d119e156c7acccdbe478f441 (diff)
parent81942bd52f0713c9ff5d479ebd12fce577f45e45 (diff)
downloadninja-6960f62a84b946c92a59e5f5dc537a818f9f62b8.tar.gz
Merge branch 'refs/heads/master' into PresetsPanel
Diffstat (limited to 'node_modules/montage/core/shim')
-rwxr-xr-xnode_modules/montage/core/shim/string.js15
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*/
72if (!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