diff --git a/README.md b/README.md index 43727d1d..57b755fa 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ NOTE: none of the changes below are breaking changes. * Element.setPosition is now Element.position (non-breaking change) * Added hideAll and showAll methods for OverText * Added Element.isVisible method +* URI's get method no longer returns null for missing parts; it returns an empty string. * Various other tweaks and bug fixes ##### Changes to Clientcide plugins adopted by MooTools More in this release diff --git a/Source/Native/URI.js b/Source/Native/URI.js index 4363a0ce..502c800c 100644 --- a/Source/Native/URI.js +++ b/Source/Native/URI.js @@ -90,7 +90,7 @@ var URI = new Class({ case 'value': return this.combine(this.parsed, base ? base.parsed : false); case 'data' : return this.getData(); } - return this.parsed[part] || null; + return this.parsed[part] || ''; }, go: function(){