emul/src/main/resources/org/apidesign/vm4brwsr/emul/java_lang_String.js
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 06 Dec 2012 16:11:48 +0100
changeset 272 a6a23aa7a546
parent 250 42c2ceb1e160
child 274 81f6e7778135
permissions -rw-r--r--
Moving the definition of Array.prototype.fillNulls() outside of the generator into the emulation .js file
jaroslav@240
     1
// initialize methods on String constants
jaroslav@250
     2
java_lang_String(false);
jaroslav@272
     3
jaroslav@272
     4
// we need initialized arrays
jaroslav@272
     5
Array.prototype.fillNulls = function() {
jaroslav@272
     6
  for(var i = 0; i < this.length; i++) this[i] = null;
jaroslav@272
     7
  return this;
jaroslav@272
     8
};
jaroslav@272
     9