support for drag and drop

This commit is contained in:
rlx 2011-08-28 06:23:15 +00:00
commit 5d454f0a80
8 changed files with 39 additions and 11 deletions

View file

@ -425,6 +425,7 @@ Ox.find <f> Returns array elements that match a string
> Ox.find(['foo', 'bar', 'foobar', 'barfoo'], 'foo')
[['foo', 'foobar'], ['barfoo']]
@*/
// fixme: wouldn't it make more sense to return just one array?
Ox.find = function(arr, str) {
var ret = [[], []];
str = str.toLowerCase();
@ -4006,6 +4007,7 @@ Ox.loadFile <f> Loads a file (image, script or stylesheet)
Ox.loadFile = (function() {
// fixme: this doesn't handle errors yet
// fixme: rename to getFile?
// fixme: what about array of files?
var cache = {};
return function (file, callback) {
var element,