Daniel Werner has submitted this change and it was merged.

Change subject: [coordinate.js] Correctly assigning coordinate variable
......................................................................


[coordinate.js] Correctly assigning coordinate variable

Using "this" to set the global coordinate object to prevent a crash in the 
ResourceLoader
when debug mode is turned off.

Change-Id: I7ccdd2e4223fd1b8f92e4cc5f12028222694afeb
---
M DataValues/resources/coordinate.js/src/coordinate.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Daniel Werner: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/DataValues/resources/coordinate.js/src/coordinate.js 
b/DataValues/resources/coordinate.js/src/coordinate.js
index 237c975..b2f30dc 100644
--- a/DataValues/resources/coordinate.js/src/coordinate.js
+++ b/DataValues/resources/coordinate.js/src/coordinate.js
@@ -12,7 +12,7 @@
  * @author Denny Vrandečić
  * @author H. Snater < [email protected] >
  */
-var coordinate = ( function() {
+this.coordinate = ( function() {
        'use strict';
 
        return {

-- 
To view, visit https://gerrit.wikimedia.org/r/66070
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7ccdd2e4223fd1b8f92e4cc5f12028222694afeb
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/DataValues
Gerrit-Branch: master
Gerrit-Owner: Henning Snater <[email protected]>
Gerrit-Reviewer: Daniel Werner <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to