http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96661
Revision: 96661
Author: catrope
Date: 2011-09-09 14:07:28 +0000 (Fri, 09 Sep 2011)
Log Message:
-----------
RL2: Some typo fixes in the JS files introduced in r96309
Modified Paths:
--------------
branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.api.js
branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.ui.js
branches/RL2/extensions/Gadgets/modules/jquery.createPropCloud.js
Modified:
branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.api.js
===================================================================
--- branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.api.js
2011-09-09 14:06:45 UTC (rev 96660)
+++ branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.api.js
2011-09-09 14:07:28 UTC (rev 96661)
@@ -20,8 +20,8 @@
/**
* For most returns from api.* functions, a clone is made when data from
- * cached is used. This is to avoid situations where later modifications
- * (ie. by the ajax editor) on the object affecting the cache (because
+ * cache is used. This is to avoid situations where later modifications
+ * (e.g. by the AJAX editor) to the object affect the cache (because
* the object would otherwise be passed by reference).
*/
function objClone( obj ) {
@@ -34,10 +34,10 @@
* var a = { words: [ 'foo', 'bar','baz' ] };
* var b = $.extend( {}, a );
* b.words.push( 'quux' );
- * a.words[4]; // quux !
+ * a.words[3]; // quux !
* </code>
*/
- return $.extend( true /* resursive */, {}, obj );
+ return $.extend( true /* recursive */, {}, obj );
}
function arrClone( arr ) {
return arr.slice();
@@ -151,7 +151,7 @@
* - blob {Object} Gadget meta data
* @param callback {Function} Called with two arguments:
* - status ('ok' or 'error')
- * - msg (localized, something like "Successfull",
"Conflict occurred" etc.)
+ * - msg (localized, something like "Successful",
"Conflict occurred" etc.)
* @return {jqXHR|Null}: Null if served from cache,
otherwise the jqXHR.
*/
doModifyGadget: function( gadget, callback ) {
Modified:
branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.ui.js
===================================================================
--- branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.ui.js
2011-09-09 14:06:45 UTC (rev 96660)
+++ branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.ui.js
2011-09-09 14:07:28 UTC (rev 96661)
@@ -117,7 +117,7 @@
gm.ui = {
/**
- * Initilizes the the page. For now just binding click handlers
+ * Initializes the the page. For now just binding click handlers
* to the anchor tags in the table.
*/
initUI: function() {
Modified: branches/RL2/extensions/Gadgets/modules/jquery.createPropCloud.js
===================================================================
--- branches/RL2/extensions/Gadgets/modules/jquery.createPropCloud.js
2011-09-09 14:06:45 UTC (rev 96660)
+++ branches/RL2/extensions/Gadgets/modules/jquery.createPropCloud.js
2011-09-09 14:07:28 UTC (rev 96661)
@@ -68,18 +68,18 @@
$cloud = $input.wrap( '<div class="' + o.prefix +
'propcloud"></div>' ).parent(),
$container = $( '<div class="' + o.prefix +
'propcontainer"></div>' );
- // Append while container is still off the dom
- // This is faster and prevents visible build up
+ // Append while container is still off the DOM
+ // This is faster and prevents visible build-up
for ( var i = 0, props = o.props, len = props.length; i < len;
i++ ) {
$container.append( newPropHtml( '' + props[i], o ) );
}
$input.autocomplete( {
- // The source is entirly up to you
+ // The source is entirely up to you
source: o.autocompleteSource,
// A value is choosen
- // (ie. by pressing return/tab, clicking on suggestion,
etc.)
+ // (e.g. by pressing return/tab, clicking on
suggestion, etc.)
select: function( e, data ){
var val = data.item.value;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs