Commit 91a2bdb8 authored by Aurel's avatar Aurel

fix html5 + check incluse with jsling

parent f126b166
......@@ -78,6 +78,15 @@ module.exports = function (grunt) {
nomen: true
}
},
jio_nodejs_include: {
src: ['src/nodejs/include.js'],
directives: {
maxlen: 80,
indent: 2,
maxerr: 3,
nomen: true
}
},
jio_storages: {
src: ['src/jio.storage/*.js'],
directives: {
......
......@@ -62,7 +62,6 @@
return new Blob([env._html5_weakmap.get(this).data.slice(start, end)], {type: contentType});
};
env.Blob = Blob;
global.Blob = Blob;
function FileReader() { EventTarget.call(this); }
FileReader.prototype = Object.create(EventTarget.prototype);
......@@ -95,6 +94,5 @@
});
};
env.FileReader = FileReader;
global.FileReader = FileReader;
}(this));
}(global));
/*global global, require */
global.URI = require("urijs");
global.RSVP = require('rsvp');
global.UriTemplate = require("uritemplate");
......@@ -6,14 +7,12 @@ global.navigator = require('navigator');
global.Rusha = require('rusha');
global.FormData = require('form-data');
global.atob = require('atob');
//global.FileReader = require("html5").FileReader;
//global.Blob = require("html5").Blob;
var LocalStorage = require('node-localstorage').LocalStorage;
global.localStorage = new LocalStorage("jio");
global.btoa = require('btoa');
global.XMLHttpRequest = require('xhr2');
var mockdoc = require("mockdoc");
global.document = new mockdoc();
var Mockdoc = require("mockdoc");
global.document = new Mockdoc();
global.sinon = require('sinon');
global.StreamBuffers = require('stream-buffers');
global.window = global;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment