mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 17:30:59 +01:00
a0d63322b1
Summary: There are a bunch of unused variables in JavaScript files. These were identified with JSHint. Test Plan: It's pretty hard to test this thoroughly... on inspection, it seems that everything //should// be okay (unless we are doing weird things with the JavaScript). Reviewers: chad, #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9676
26 lines
641 B
JavaScript
26 lines
641 B
JavaScript
/**
|
|
* @provides phabricator-uiexample-reactor-sendproperties
|
|
* @requires javelin-install
|
|
* javelin-dom
|
|
* javelin-reactor-dom
|
|
*/
|
|
|
|
JX.install('ReactorSendPropertiesExample', {
|
|
extend: 'View',
|
|
members: {
|
|
render: function() {
|
|
var color = JX.$N('input', {value: '#fff000'});
|
|
var title = JX.$N('input', {value: 'seen on hover'});
|
|
var target = JX.$N('span', 'Change my color and title');
|
|
|
|
JX.RDOM.sendProps(target, {
|
|
style: {
|
|
backgroundColor: JX.RDOM.input(color)
|
|
},
|
|
title: JX.RDOM.input(title)
|
|
});
|
|
|
|
return [color, title, target];
|
|
}
|
|
}
|
|
});
|