support for drag and drop
This commit is contained in:
parent
9ea5cce853
commit
5d454f0a80
8 changed files with 39 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue