Permalink
Browse files

docs

  • Loading branch information...
1 parent 465057e commit d1818784fa1b8d0e33940aca3b87dd6879126376 @tj tj committed Aug 26, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/runtime.js
View
@@ -5,12 +5,20 @@
* MIT Licensed
*/
+/**
+ * Lame Array.isArray() polyfill for now.
+ */
+
if (!Array.isArray) {
Array.isArray = function(arr){
return '[object Array]' == toString.call(arr);
};
}
+/**
+ * Lame Object.keys() polyfill for now.
+ */
+
if (!Object.keys) {
Object.keys = function(obj){
var arr = [];

0 comments on commit d181878

Please sign in to comment.