Skip to content

Commit 64da9e3

Browse files
creyndersmmikeyy
authored andcommitted
Fix GeppettoJS#51, double resolution of singleton dependencies
1 parent a76fd48 commit 64da9e3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

backbone.geppetto.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@
119119

120120
wireSingleton: function(key, clazz, wiring) {
121121

122-
var constructor = (clazz.prototype.initialize ? this._wrapConstructor(clazz, wiring) : clazz);
123-
124122
this._mappings[key] = {
125-
clazz: constructor,
123+
clazz: clazz,
126124
object: null,
127125
type: TYPES.SINGLETON,
128126
wiring: wiring

dist/backbone.geppetto.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)