emul/src/main/resources/org/apidesign/vm4brwsr/emul/java_lang_String.js
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 10 Dec 2012 12:03:22 +0100
changeset 297 a20721a10717
parent 250 42c2ceb1e160
child 274 81f6e7778135
permissions -rw-r--r--
Cache the compiled code per class, not globally
     1 // initialize methods on String constants
     2 java_lang_String(false);
     3 
     4 // we need initialized arrays
     5 Array.prototype.fillNulls = function() {
     6   for(var i = 0; i < this.length; i++) this[i] = null;
     7   return this;
     8 };
     9