Skip to content

Commit

Permalink
uri's get method no longer returns null for missing parts; it returns…
Browse files Browse the repository at this point in the history
… an empty string.
  • Loading branch information
anutron committed Sep 17, 2009
1 parent 18f48f8 commit f665bc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Source/Native/URI.js
Expand Up @@ -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(){
Expand Down

0 comments on commit f665bc2

Please sign in to comment.