Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
रिक्त स्थान छिपाएँ
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
टेक्स्ट शैलियां
दिखावट बदलें
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
ShareBuy view before and after Rivets
बनाया गया
10 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
73 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
71 लाइनें
सभी को कॉपी करें
31 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
33 लाइनें
सभी को कॉपी करें
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
var toCurrency = require('../templates/helpers/formatcurrency');
var ShareBuyView = Marionette.ItemView.extend({
var ShareBuyView = Marionette.ItemView.extend({
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
template:
require('../templates/
newbuy.hbs'),
template:
false,
bindings: {
html:
require('../templates/
sharebuy.html'),
'[name=symbol]': {
observe: 'symbol',
events: ['blur']
},
'[name=price]': {
observe: 'price',
onGet: 'numToStr',
onSet: 'strToNum'
},
'[name=quantity]': {
observe: 'quantity',
onGet: 'numToStr',
onSet: 'strToNum'
},
'[name=date]': 'date'
},
initialize: function (options) {
initialize: function (options) {
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
this.state =
new Backbone.Model();
this.state =
{
isNew
:
!this.pristineModel
,
hasSymbol
:
!!this.symbol
}
;
this.state.set('
isNew
',
!this.pristineModel
);
if (this.state.
isNew
&& this.symbol) {
this.state.set('
hasSymbol
',
!!this.symbol
)
;
if (this.state.
get('
isNew
')
&& this.symbol) {
this.model.set('symbol', this.symbol.get('name'));
this.model.set('symbol', this.symbol.get('name'));
}
}
},
},
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
onBeforeRender: function() {
if (this.view) {
this.view.unbind();
this.view = null;
}
this.attachElContent(this.html);
this.view = rivets.bind(this.el, this);
},
onRender: function () {
onRender: function () {
this.updateMeanPrice();
this.updateMeanPrice();
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
this.stickit();
this.stickit(this.state, {
'#remove-buy': {
observe: 'isNew',
onGet: function (value) {
return !value
},
visible: true
},
'[name=symbol]':{
attributes: [
{
name: 'disabled',
observe: 'hasSymbol',
onGet: function (value) {
return value
}
}]
}
})
},
},
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
onDestroy: function() {
if (this.view) {
this.view.unbind();
this.view = null;
}
updateMeanPrice: function() {
updateMeanPrice: function() {
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
this.
$el.find('
.mean
-p
rice
').text(
this.symbol ?
toCurrency(
this.symbol.simulateMeanPrice(this.model)
)
:
'--')
;
this.
state
.mean
P
rice
=
this.symbol ?
this.symbol.simulateMeanPrice(this.model)
:
undefined
;
this.
$el.find('
.current
-m
ean
-p
rice
').text(
this.symbol ?
toCurrency(
this.symbol.meanPrice
) : '--');
this.
state
.current
M
ean
P
rice
=
this.symbol ?
this.symbol.meanPrice
: undefined;
},
}
strToNum: function (val) {
if (val != null) {
return +val;
}
},
numToStr: function (val) {
if (val != null) {
return val.toString();
}
}
});
});
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
var toCurrency = require('../templates/helpers/formatcurrency'); var ShareBuyView = Marionette.ItemView.extend({ template: require('../templates/newbuy.hbs'), bindings: { '[name=symbol]': { observe: 'symbol', events: ['blur'] }, '[name=price]': { observe: 'price', onGet: 'numToStr', onSet: 'strToNum' }, '[name=quantity]': { observe: 'quantity', onGet: 'numToStr', onSet: 'strToNum' }, '[name=date]': 'date' }, initialize: function (options) { this.state = new Backbone.Model(); this.state.set('isNew', !this.pristineModel); this.state.set('hasSymbol', !!this.symbol); if (this.state.get('isNew') && this.symbol) { this.model.set('symbol', this.symbol.get('name')); } }, onRender: function () { this.updateMeanPrice(); this.stickit(); this.stickit(this.state, { '#remove-buy': { observe: 'isNew', onGet: function (value) { return !value }, visible: true }, '[name=symbol]':{ attributes: [ { name: 'disabled', observe: 'hasSymbol', onGet: function (value) { return value } }] } }) }, updateMeanPrice: function() { this.$el.find('.mean-price').text(this.symbol ? toCurrency(this.symbol.simulateMeanPrice(this.model)) : '--'); this.$el.find('.current-mean-price').text(this.symbol ? toCurrency(this.symbol.meanPrice) : '--'); }, strToNum: function (val) { if (val != null) { return +val; } }, numToStr: function (val) { if (val != null) { return val.toString(); } } });
परिवर्तित टेक्स्ट
फ़ाइल खोलें
var ShareBuyView = Marionette.ItemView.extend({ template: false, html: require('../templates/sharebuy.html'), initialize: function (options) { this.state = {isNew: !this.pristineModel, hasSymbol: !!this.symbol}; if (this.state.isNew && this.symbol) { this.model.set('symbol', this.symbol.get('name')); } }, onBeforeRender: function() { if (this.view) { this.view.unbind(); this.view = null; } this.attachElContent(this.html); this.view = rivets.bind(this.el, this); }, onRender: function () { this.updateMeanPrice(); }, onDestroy: function() { if (this.view) { this.view.unbind(); this.view = null; } updateMeanPrice: function() { this.state.meanPrice = this.symbol ? this.symbol.simulateMeanPrice(this.model) : undefined; this.state.currentMeanPrice = this.symbol ? this.symbol.meanPrice : undefined; } });
अंतर खोजें