incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [19/48] js commit: file writer now seeks properly
Date Thu, 07 Jun 2012 20:40:44 GMT
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 <tim.kim@nitobi.com>
Authored: Wed May 30 16:27:48 2012 -0700
Committer: Tim Kim <tim.kim@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;
                 }
             }
 


Mime
View raw message