Created
April 24, 2015 14:47
-
-
Save tavriaforever/58890f653814ba25d0f3 to your computer and use it in GitHub Desktop.
This file contains 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
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