mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
0569218201
Summary: If `jsxmin` is not available, use a pure PHP implementation instead (JsShrink). Test Plan: - Ran `arc lint --lintall` on all JS and fixed every relevant warning. - Forced minification on and browsed around the site using JS behaviors. Didn't hit anything problematic. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5670
32 lines
806 B
JavaScript
32 lines
806 B
JavaScript
/**
|
|
* @provides phabricator-uiexample-reactor-input
|
|
* @requires javelin-install
|
|
* javelin-reactor-dom
|
|
* javelin-view-html
|
|
* javelin-view-interpreter
|
|
* javelin-view-renderer
|
|
*/
|
|
|
|
JX.install('ReactorInputExample', {
|
|
extend: 'View',
|
|
members: {
|
|
render: function(rendered_children) {
|
|
var html = JX.HTMLView.registerToInterpreter(new JX.ViewInterpreter());
|
|
|
|
var raw_input = JX.ViewRenderer.render(
|
|
html.input({ value: this.getAttr('init') })
|
|
);
|
|
var input = JX.RDOM.input(raw_input);
|
|
|
|
return JX.ViewRenderer.render(
|
|
html.div(
|
|
raw_input,
|
|
html.br(),
|
|
html.span(JX.RDOM.$DT(input)),
|
|
html.br(),
|
|
html.span(JX.RDOM.$DT(input.calm(500)))
|
|
)
|
|
);
|
|
}
|
|
}
|
|
});
|