Last active
August 29, 2015 14:04
-
-
Save floatdrop/89088fe512f46fb92949 to your computer and use it in GitHub Desktop.
BH IS AWESOME
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
var bh = new (require('bh').BH)(); | |
bh.match('button', function(ctx) { | |
ctx.mix({block: 'i-global'}); | |
}); | |
bh.match('button', function(ctx) { | |
return [ | |
'2', | |
ctx.json(), | |
ctx.json(), | |
ctx.json(), | |
'2' | |
]; | |
}); | |
bh.match('button', function(ctx) { | |
return [ | |
'1', | |
ctx.json(), | |
ctx.json(), | |
ctx.json(), | |
'1' | |
]; | |
}); | |
bh.apply({block: 'button'}); // What it will be? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Есть ещё вероятность этого: