Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2012 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1717053 to your computer and use it in GitHub Desktop.
Save anonymous/1717053 to your computer and use it in GitHub Desktop.
Javascript Large
define(["jquery", "use!underscore", "Aura/facade", "Aura/mediator"],
function ($, _, facade, mediator) {
facade.subscribe('mBlocksSubscriber', 'mobily', function(selector){
$(selector).mobilyblocks();
});
facade.subscribe('BtnsRenderer','renderBtns', function (context, Buttons, SBView) {
_.each( Buttons, function(coll){
$.when(
new SBView({collection: coll, currentID: coll.name}),
coll.fetch()
).then(function(){
mediator.publish('mobily', 'div[id ^="solfg_"]');
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment