Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312444

Change subject: Follow-up 3ca658ed, e3192e2d: avoid JS errors when checking for 
rAF
......................................................................

Follow-up 3ca658ed, e3192e2d: avoid JS errors when checking for rAF

Change-Id: I675e8c6d9bf9ef586d1669941aebfe5885135b19
---
M src/ce/ve.ce.FocusableNode.js
M src/init/ve.init.Target.js
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/44/312444/1

diff --git a/src/ce/ve.ce.FocusableNode.js b/src/ce/ve.ce.FocusableNode.js
index 451611f..792fae9 100644
--- a/src/ce/ve.ce.FocusableNode.js
+++ b/src/ce/ve.ce.FocusableNode.js
@@ -119,7 +119,7 @@
  * @method
  */
 ve.ce.FocusableNode.prototype.onFocusableSetup = function () {
-       var rAF = requestAnimationFrame || setTimeout;
+       var rAF = window.requestAnimationFrame || setTimeout;
 
        // Exit if already setup or not attached
        if ( this.isFocusableSetup || !this.root ) {
diff --git a/src/init/ve.init.Target.js b/src/init/ve.init.Target.js
index 99db2da..c3327c2 100644
--- a/src/init/ve.init.Target.js
+++ b/src/init/ve.init.Target.js
@@ -427,7 +427,7 @@
 ve.init.Target.prototype.setupToolbar = function ( surface ) {
        var toolbar = this.getToolbar(),
                actions = this.getActions(),
-               rAF = requestAnimationFrame || setTimeout;
+               rAF = window.requestAnimationFrame || setTimeout;
 
        toolbar.connect( this, { resize: 'onToolbarResize' } );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I675e8c6d9bf9ef586d1669941aebfe5885135b19
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <r...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to