Skip to content

Instantly share code, notes, and snippets.

@deniaz
Created October 1, 2015 16:21
Show Gist options
  • Save deniaz/5728859126ba51079639 to your computer and use it in GitHub Desktop.
Save deniaz/5728859126ba51079639 to your computer and use it in GitHub Desktop.
Terrific.js Bug
(function($) {
'use strict';
T.Module.Foo.Bar = T.createDecorator({
start: function (resolve) {
var $ctx = $(this._ctx);
this.bar();
this._parent.start(resolve);
},
bar: function() {}
});
}(T.$));
(function($) {
'use strict';
T.Module.Foo = T.createModule({
start: function(resolve) {
var $ctx = $(this._ctx);
console.log('Foo');
resolve();
}
});
}(T.$));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment