r64967 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64966‎ | r64967 | r64968 >
Date:18:01, 12 April 2010
Author:dale
Status:ok
Tags:
Comment:
check for "null" context ( getting context is null errors in some js2 scenarios )
Modified paths:
  • /trunk/extensions/UsabilityInitiative/InlineSectionEdit (added) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js
@@ -212,7 +212,7 @@
213213 // where we left off
214214 var context = $(this).data( 'wikiEditor-context' );
215215 // On first call, we need to set things up, but on all following calls we can skip right to the API handling
216 -if ( typeof context == 'undefined' ) {
 216+if ( !context || typeof context == 'undefined' ) {
217217
218218 // Star filling the context with useful data - any jQuery selections, as usual should be named with a preceding $
219219 context = {

Status & tagging log