Created
February 28, 2014 13:04
-
-
Save awinogradov/9270709 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('credit-card')( | |
js()(true), | |
content()(function() { | |
return { | |
elem: 'card', | |
content: [ | |
{ | |
block: 'logo', | |
mods: { theme: 'gray' }, | |
format: 'svg' | |
}, | |
{ | |
elem: 'number' | |
}, | |
{ | |
elem: 'expiration' | |
} | |
] | |
} | |
}) | |
) |
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
modules.define('i-bem__dom', ['jquery'], function(provide, $, DOM) { | |
DOM.decl('credit-card', { | |
onSetMod: { | |
'js' : { | |
'inited' : function() { | |
alert("!"); | |
} | |
} | |
} | |
}); | |
provide(DOM); | |
}); |
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('timer')( | |
js()(true), | |
content()(function() { | |
return [ | |
{ | |
block: 'fa-icon', | |
name: 'clock-o' | |
}, | |
{ | |
elem: 'time', | |
content: this.ctx.from | |
} | |
] | |
}) | |
) |
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
modules.define('i-bem__dom', ['jquery'], function(provide, $, DOM) { | |
DOM.decl('timer', { | |
onSetMod: { | |
'js' : { | |
'inited' : function() { | |
alert("!"); | |
} | |
} | |
} | |
}); | |
provide(DOM); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment