You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/06/07 22:40:44 UTC
[19/48] js commit: file writer now seeks properly
file writer now seeks properly
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/29dd29bd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/29dd29bd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/29dd29bd
Branch: refs/heads/master
Commit: 29dd29bd2bd4e7210c769e632ec2bde7090fa13d
Parents: 72e6d1e
Author: Tim Kim <ti...@nitobi.com>
Authored: Wed May 30 16:27:48 2012 -0700
Committer: Tim Kim <ti...@nitobi.com>
Committed: Thu Jun 7 13:40:23 2012 -0700
----------------------------------------------------------------------
lib/playbook/plugin/playbook/FileWriter.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/29dd29bd/lib/playbook/plugin/playbook/FileWriter.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/FileWriter.js b/lib/playbook/plugin/playbook/FileWriter.js
index 159b0df..954e8e7 100644
--- a/lib/playbook/plugin/playbook/FileWriter.js
+++ b/lib/playbook/plugin/playbook/FileWriter.js
@@ -102,7 +102,7 @@ FileWriter.prototype.write = function(text) {
if(blob){
oldText = blackberry.utils.blobToString(blob);
if(oldText.length>0){
- newText = oldText.substr(0,me.position) + text + oldText.substr(me.position);
+ newText = oldText.substr(0,me.position) + text;
}
}