Actions
Bug #3632
openWApplication.require() does not enforce unique loading of js libraries
Start date:
10/25/2014
Due date:
% Done:
0%
Estimated time:
Description
WApplication.require() fails checking for already loaded js libraries due to WApplication.ScriptLibrary.equals() signature not overriding Object.equals()
The followins equals() implementation results in a working require() method.
@
public boolean equals(Object other) {
if ( this == other ) return true;
if ( !(other instanceof ScriptLibrary) ) return false;
ScriptLibrary sl = (ScriptLibrary)other;
return this.uri.equals(sl.uri);
}
@
No data to display
Actions