From fc4d32e0df064ecdbe7ed86aab25eeab58253032 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Wed, 1 Feb 2012 12:05:31 -0800 Subject: convert fileUtils to a montage component so that it can access the coreioapi singleton. Signed-off-by: Ananya Sen --- js/io/utils/file-utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/io/utils/file-utils.js b/js/io/utils/file-utils.js index 0a4d9687..784ecf59 100644 --- a/js/io/utils/file-utils.js +++ b/js/io/utils/file-utils.js @@ -4,7 +4,10 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. */ -var FileUtils = exports.FileUtils = Object.create(Object.prototype, { +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component; + +var FileUtils = exports.FileUtils = Montage.create(Component, { /*** * checks for valid uri pattern -- cgit v1.2.3