lib/assets/javascripts/esphinx/lib/patterns/gof/flyweight/factory.js in esphinx-rails-1.1.3 vs lib/assets/javascripts/esphinx/lib/patterns/gof/flyweight/factory.js in esphinx-rails-1.1.4
- old
+ new
@@ -21,10 +21,11 @@
Object.defineProperties($module.Factory, {
singletons: {
get: function() {
- return flyweights;
+ // inspect (read-only)
+ return flyweights.clone();
}
},
exists: {
value: function(constructor, args) {