Blog

getMatches(str, exp)

I recently encountered two troubling bugs with jPaq’s String.prototype.indexOfPattern() function.  In order to fix it, I ended up exploring the powerful String.prototype.replace() function, exploiting the parameter passed into the callback function.  I already knew that the matched text and sub-groups Read more…

By Chris West, ago
Blog

No jPaq.openWindow() For Now

Up until today, I was interested in writing a more object oriented version of the native window.open() function.  Unfortunately, I found out that there are some major incompatibility issues between browsers.  Let’s take this example for instance: [sourcecode language=”js”] window.open(“http://google.com/”, Read more…

By Chris West, ago