Commit 91a2bdb8 authored by Aurel's avatar Aurel

fix html5 + check incluse with jsling

parent f126b166
...@@ -78,6 +78,15 @@ module.exports = function (grunt) { ...@@ -78,6 +78,15 @@ module.exports = function (grunt) {
nomen: true nomen: true
} }
}, },
jio_nodejs_include: {
src: ['src/nodejs/include.js'],
directives: {
maxlen: 80,
indent: 2,
maxerr: 3,
nomen: true
}
},
jio_storages: { jio_storages: {
src: ['src/jio.storage/*.js'], src: ['src/jio.storage/*.js'],
directives: { directives: {
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
return new Blob([env._html5_weakmap.get(this).data.slice(start, end)], {type: contentType}); return new Blob([env._html5_weakmap.get(this).data.slice(start, end)], {type: contentType});
}; };
env.Blob = Blob; env.Blob = Blob;
global.Blob = Blob;
function FileReader() { EventTarget.call(this); } function FileReader() { EventTarget.call(this); }
FileReader.prototype = Object.create(EventTarget.prototype); FileReader.prototype = Object.create(EventTarget.prototype);
...@@ -95,6 +94,5 @@ ...@@ -95,6 +94,5 @@
}); });
}; };
env.FileReader = FileReader; env.FileReader = FileReader;
global.FileReader = FileReader;
}(this)); }(global));
/*global global, require */
global.URI = require("urijs"); global.URI = require("urijs");
global.RSVP = require('rsvp'); global.RSVP = require('rsvp');
global.UriTemplate = require("uritemplate"); global.UriTemplate = require("uritemplate");
...@@ -6,14 +7,12 @@ global.navigator = require('navigator'); ...@@ -6,14 +7,12 @@ global.navigator = require('navigator');
global.Rusha = require('rusha'); global.Rusha = require('rusha');
global.FormData = require('form-data'); global.FormData = require('form-data');
global.atob = require('atob'); global.atob = require('atob');
//global.FileReader = require("html5").FileReader;
//global.Blob = require("html5").Blob;
var LocalStorage = require('node-localstorage').LocalStorage; var LocalStorage = require('node-localstorage').LocalStorage;
global.localStorage = new LocalStorage("jio"); global.localStorage = new LocalStorage("jio");
global.btoa = require('btoa'); global.btoa = require('btoa');
global.XMLHttpRequest = require('xhr2'); global.XMLHttpRequest = require('xhr2');
var mockdoc = require("mockdoc"); var Mockdoc = require("mockdoc");
global.document = new mockdoc(); global.document = new Mockdoc();
global.sinon = require('sinon'); global.sinon = require('sinon');
global.StreamBuffers = require('stream-buffers'); global.StreamBuffers = require('stream-buffers');
global.window = global; 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