Skip to content

Instantly share code, notes, and snippets.

@steveodom
Created July 20, 2015 20:44
Show Gist options
  • Save steveodom/87c7c46aedb83cefd5c3 to your computer and use it in GitHub Desktop.
Save steveodom/87c7c46aedb83cefd5c3 to your computer and use it in GitHub Desktop.
require.config({
map: {
'*': {
'underscore': 'js/lodash',
'jquery': 'js/jquery',
'lodash': 'js/lodash'
}
}
});
define(function (require) {
return {
ready: function (components) {
var mediaGroup = components.mosaic.getGroupType('media');
var newMediaGroup = mediaGroup.extend({
// trying to start overriding and get to the view
getContent: function () {
mediaGroup.prototype.getContent.apply(this, arguments);
// get the view. I'm lost here.
var statusModel = this.poller.queue.at(this._queueIndex);
var ViewClass = this._statusViewFactory(statusModel);
console.info(ViewClass)
}
});
components.mosaic.setGroupType('media', newMediaGroup);
},
render: function (components) {
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment