Skip to content

Instantly share code, notes, and snippets.

@tavriaforever
Created April 24, 2015 14:47
Show Gist options
  • Save tavriaforever/58890f653814ba25d0f3 to your computer and use it in GitHub Desktop.
Save tavriaforever/58890f653814ba25d0f3 to your computer and use it in GitHub Desktop.
block('ball')(
def()(function () {
var myFunc = function () {
console.log('common function');
};
return applyNext({ _myFunc: myFunc });
}),
content()(function () {
return {
elem: 'el1',
content: apply('ball-el1')
};
}),
mode('ball-el1')(function () {
var result = this._myFunc();
return result;
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment