Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EFE51074E for ; Tue, 8 Oct 2013 12:24:52 +0000 (UTC) Received: (qmail 71751 invoked by uid 500); 8 Oct 2013 12:24:50 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 71402 invoked by uid 500); 8 Oct 2013 12:24:46 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 71072 invoked by uid 99); 8 Oct 2013 12:24:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 12:24:43 +0000 Date: Tue, 8 Oct 2013 12:24:43 +0000 (UTC) From: "Bryan Higgins (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-5015) fileUtils is not defined error in BB10 file plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Bryan Higgins created CB-5015: --------------------------------- Summary: fileUtils is not defined error in BB10 file plugin Key: CB-5015 URL: https://issues.apache.org/jira/browse/CB-5015 Project: Apache Cordova Issue Type: Bug Components: BlackBerry Affects Versions: 3.0.0 Reporter: Bryan Higgins Assignee: Bryan Higgins This was reported on the BB forums: Hello, I'm trying to use the org.apache.cordova.file plugin however there seems to be a problem with the includes. If you look in for example: C:\\platforms\blackberry10\www\plugins\org.apache.cordova.file\www\blackberry10\File.js for this code block: /** * Returns a "slice" of the file. * Slices of slices are supported. * start {Number} The index at which to start the slice (inclusive). * end {Number} The index at which to end the slice (exclusive). */ File.prototype.slice = function(start, end) { return fileUtils.createFile(this.nativeFile.slice(start, end)); }; fileUtils is not defined. Adding the below line like in FileWriter.js didn't work either: EDIT: actually the below line does work when you use a semi-colon instead of comma! But should still be fixed in the official release too. var fileUtils = require('./BB10Utils'); Link to thread: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Phonegap-3-0-File-plugin-fileUtils-not-defined/m-p/2618103#M40965 -- This message was sent by Atlassian JIRA (v6.1#6144)