Created
July 20, 2015 20:44
-
-
Save steveodom/87c7c46aedb83cefd5c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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