Ticket #20 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

new car loan

Reported by: usc@innuendo.de Assigned to: Jan-Klaas Kollhof
Priority: highest Milestone:
Component: jsolait-core Version:
Severity: blocker Keywords: new car loan
Cc: new car loan

Description

hi,

is use jsolait and qooxdoo (http://qooxdoo.oss.schlund.de/) in one project. since a few days the qooxdoo library defined a string extension "pad" which overwrites the one included in jsolait. this lead to the problem, that the string-formatting did not work anymore.

it would be great to have special classes/functions with the enhancements of jsolait. for example define a class "JSOLAITString" with the "pad" and "format" methods. the implementations should only call this functions and never the "String.prototype.pad". so the code of your library is separated from the extensions and other libraries.

you can define the "format" extension too, but only as a one-liner which calls the own implementation. if this extension is overwritten by another lib, your code does not break!

and i (as an end user) can include jsolait.js as the last library and so i use your extensions. or i use another library as the last one which redefines your extensions. and if i want your formatting logic i have to call "JSOLAITString.format(...)".

</usc>

Change History

03/10/06 10:42:22 changed by Jan-Klaas Kollhof

  • status changed from new to assigned.

If I had another String class t would slow things down a bit and I could not use "".format anymore.

What I can do is remove the dependency on the pad function of String

03/10/06 10:51:39 changed by Jan-Klaas Kollhof

  • status changed from assigned to closed.
  • resolution set to fixed.