Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
OwnedSymbols view before and after Rivets
作成日
10 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
35 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
50 行
すべてコピー
21 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
37 行
すべてコピー
var Radio = require('backbone.radio');
var Radio = require('backbone.radio');
コピー
コピー済み
コピー
コピー済み
var OwnedSymbol
Item
View = Marionette.ItemView.extend({
var OwnedSymbol
s
View = Marionette.ItemView.extend({
template: require('../templates/ownedsymbolitem.hbs'),
template: false,
tagName: 'li',
html
: require('../templates/ownedsymbols.
html
'),
className: 'item item-icon-right row',
modelEvents: {
'change:latestPrice': 'onLatestPriceChange'
},
events: {
'click': 'onClick'
},
onLatestPriceChange: function () {
var price = this.model.get('latestPrice');
var variation = this.model.get('latestVariation');
var variationText = variation ? Math.abs(variation).toFixed(2) + '%' : '--';
var iconClass = 'ion-arrow-' + (variation > 0 ? 'up': 'down') + '-a';
this.$el.find('.stock-variation').toggleClass('negative-value', variation < 0)
.contents().filter(function() {
return this.nodeType == 3 && this.textContent.trim().length > 0
}).replaceWith(' ' + variationText);
this.$el.find('.stock-variation i').removeClass('ion-arrow-up-a ion-arrow-down-a').addClass(iconClass);
this.$el.find('.stock-price').html(price ? 'R$' + price.toFixed(2) : '--');
},
onClick: function (e) {
e.preventDefault();
Radio.channel('navigation').request('goToPage', 'symboldetails', this.model.get('id'));
}
});
var OwnedSymbolsView = Marionette.CompositeView.extend({
template
: require('../templates/ownedsymbols.
hbs
'),
childView: OwnedSymbolItemView,
childViewContainer: '#symbol-list',
pageHeader: {
pageHeader: {
title: 'Carteira de Ações',
title: 'Carteira de Ações',
buttons: [
buttons: [
{
{
icon: 'ion-plus',
icon: 'ion-plus',
method: 'add:buy'
method: 'add:buy'
}
}
]
]
},
},
コピー
コピー済み
コピー
コピー済み
onBeforeRender: function () {
if (this.view) {
this.view.unbind();
this.view = null;
}
this.attachElContent(this.html);
this.view = rivets.bind(this.el, this);
},
onDestroy: function () {
if (this.view) {
this.view.unbind();
this.view = null;
}
},
onAddBuy: function () {
onAddBuy: function () {
Radio.channel('navigation').request('goToPage', 'newbuy');
Radio.channel('navigation').request('goToPage', 'newbuy');
コピー
コピー済み
コピー
コピー済み
},
onItemClick: function (e, scope) {
Radio.channel('navigation').request('goToPage', 'symboldetails', scope.model.get('id'));
}
}
});
});
module.exports = OwnedSymbolsView;
module.exports = OwnedSymbolsView;
保存された差分
原文
ファイルを開く
var Radio = require('backbone.radio'); var OwnedSymbolItemView = Marionette.ItemView.extend({ template: require('../templates/ownedsymbolitem.hbs'), tagName: 'li', className: 'item item-icon-right row', modelEvents: { 'change:latestPrice': 'onLatestPriceChange' }, events: { 'click': 'onClick' }, onLatestPriceChange: function () { var price = this.model.get('latestPrice'); var variation = this.model.get('latestVariation'); var variationText = variation ? Math.abs(variation).toFixed(2) + '%' : '--'; var iconClass = 'ion-arrow-' + (variation > 0 ? 'up': 'down') + '-a'; this.$el.find('.stock-variation').toggleClass('negative-value', variation < 0) .contents().filter(function() { return this.nodeType == 3 && this.textContent.trim().length > 0 }).replaceWith(' ' + variationText); this.$el.find('.stock-variation i').removeClass('ion-arrow-up-a ion-arrow-down-a').addClass(iconClass); this.$el.find('.stock-price').html(price ? 'R$' + price.toFixed(2) : '--'); }, onClick: function (e) { e.preventDefault(); Radio.channel('navigation').request('goToPage', 'symboldetails', this.model.get('id')); } }); var OwnedSymbolsView = Marionette.CompositeView.extend({ template: require('../templates/ownedsymbols.hbs'), childView: OwnedSymbolItemView, childViewContainer: '#symbol-list', pageHeader: { title: 'Carteira de Ações', buttons: [ { icon: 'ion-plus', method: 'add:buy' } ] }, onAddBuy: function () { Radio.channel('navigation').request('goToPage', 'newbuy'); } }); module.exports = OwnedSymbolsView;
変更されたテキスト
ファイルを開く
var Radio = require('backbone.radio'); var OwnedSymbolsView = Marionette.ItemView.extend({ template: false, html: require('../templates/ownedsymbols.html'), pageHeader: { title: 'Carteira de Ações', buttons: [ { icon: 'ion-plus', method: 'add:buy' } ] }, onBeforeRender: function () { if (this.view) { this.view.unbind(); this.view = null; } this.attachElContent(this.html); this.view = rivets.bind(this.el, this); }, onDestroy: function () { if (this.view) { this.view.unbind(); this.view = null; } }, onAddBuy: function () { Radio.channel('navigation').request('goToPage', 'newbuy'); }, onItemClick: function (e, scope) { Radio.channel('navigation').request('goToPage', 'symboldetails', scope.model.get('id')); } }); module.exports = OwnedSymbolsView;
違いを見つける