Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
OwnedSymbols view before and after Rivets
बनाया गया
10 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
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;
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
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;
अंतर खोजें