r94922 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94921‎ | r94922 | r94923 >
Date:18:57, 18 August 2011
Author:inez
Status:deferred
Tags:
Comment:
Lets be more strict about comparing objects
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.ListBlock.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.ListBlock.js
@@ -208,7 +208,7 @@
209209 var locationStart = this.getLocationFromOffset( range.start ),
210210 locationEnd = this.getLocationFromOffset( range.end );
211211
212 - if ( locationStart.item == locationEnd.item ) {
 212+ if ( locationStart.item === locationEnd.item ) {
213213 // delete content within one item
214214 locationStart.item.content.remove(
215215 new es.Range( locationStart.offset, locationStart.offset + range.getLength() )
@@ -268,7 +268,7 @@
269269 var locationStart = this.getLocationFromOffset( range.start ),
270270 locationEnd = this.getLocationFromOffset( range.end );
271271
272 - if ( locationStart.item == locationEnd.item ) {
 272+ if ( locationStart.item === locationEnd.item ) {
273273 // annotate content within one item
274274 locationStart.item.content.annotate(
275275 method,

Status & tagging log