You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:10 UTC

[14/37] git commit: CB-6242 [BlackBerry10] Polyfill window.requestAnimationFrame for OS < 10.2

CB-6242 [BlackBerry10] Polyfill window.requestAnimationFrame for OS < 10.2


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/b9fd7699
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/b9fd7699
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/b9fd7699

Branch: refs/heads/master
Commit: b9fd769912357a755866499066d8c4a615ac96d8
Parents: 044f07d
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Tue Mar 18 10:58:27 2014 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Mar 18 10:58:27 2014 -0400

----------------------------------------------------------------------
 www/blackberry10/DirectoryEntry.js            | 4 ++++
 www/blackberry10/requestFileSystem.js         | 4 ++++
 www/blackberry10/resolveLocalFileSystemURI.js | 4 ++++
 3 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/b9fd7699/www/blackberry10/DirectoryEntry.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/DirectoryEntry.js b/www/blackberry10/DirectoryEntry.js
index 051a043..64ded02 100644
--- a/www/blackberry10/DirectoryEntry.js
+++ b/www/blackberry10/DirectoryEntry.js
@@ -29,6 +29,10 @@ var argscheck = require('cordova/argscheck'),
         DirectoryEntry.__super__.constructor.call(this, false, true, name, fullPath, fileSystem);
     };
 
+if (!window.requestAnimationFrame) {
+    window.requestAnimationFrame = function (callback) { callback(); };
+}
+
 utils.extend(DirectoryEntry, Entry);
 
 DirectoryEntry.prototype.createReader = function () {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/b9fd7699/www/blackberry10/requestFileSystem.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/requestFileSystem.js b/www/blackberry10/requestFileSystem.js
index a68f819..9180801 100644
--- a/www/blackberry10/requestFileSystem.js
+++ b/www/blackberry10/requestFileSystem.js
@@ -23,6 +23,10 @@ var fileUtils = require('./BB10Utils'),
     FileError = require('./FileError'),
     FileSystem = require('./BB10FileSystem');
 
+if (!window.requestAnimationFrame) {
+    window.requestAnimationFrame = function (callback) { callback(); };
+}
+
 module.exports = function (type, size, success, fail) {
     var cordovaFs,
         cordovaFsRoot;

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/b9fd7699/www/blackberry10/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/resolveLocalFileSystemURI.js b/www/blackberry10/resolveLocalFileSystemURI.js
index 95c9d21..db64615 100644
--- a/www/blackberry10/resolveLocalFileSystemURI.js
+++ b/www/blackberry10/resolveLocalFileSystemURI.js
@@ -22,6 +22,10 @@
 var fileUtils = require('./BB10Utils'),
     FileError = require('./FileError');
 
+if (!window.requestAnimationFrame) {
+    window.requestAnimationFrame = function (callback) { callback(); };
+}
+
 module.exports = function (uri, success, fail) {
 
     var decodedURI = decodeURI(uri).replace(/filesystem:/, '').replace(/file:\/\//, ''),