Comments (12)
feel free to update it with whatever works. I honestly have no idea ;)
from jdataview.
Hm. I thought you added that script block and had some reasons for that?
from jdataview.
from jdataview.
I see. As far as I understood, you already have special patched version of jQuery for those who would like to use it. Do we really need to maintain jQuery-related code in primary library file?
from jdataview.
The jQuery patch makes sure that XHR doesn't touch the input. If you don't give a special option, it's going to treat the input as a UTF-8 string and will transform all the non-valid UTF-8 characters. It means that we lose information.
from jdataview.
Yeah, I know why it's needed, just wondering if we do really need to keep jQuery-related code inside primary library code or it could be removed from there so those who need it, can download it as separate patch?
from jdataview.
I don't really care either way. If you think it should be in a separate file, feel free to update it :) I just put it there because it was easier for my own use.
from jdataview.
This Stackoverflow comment, on a discussion I remember reading when I wrote the code, says new VBArray(responseBody).toArray()
doesn't work in IE8. IIRC, I confirmed this myself. Ironically the VBScript hack is faster than the VBArray conversion, too, so if you have it for back-compatibility you may as well always use it.
I guess it is up to @vjeux to decide what IE versions to support. Personally, with the code already written, I think keeping some ugly code around is a fair price to pay for extra support. I will probably always keep it in my own fork at least, because I use it in an application that I personally may need to use on a WinXP box in a public library.
from jdataview.
Np. In my case I just had not to support such old stuff like IE8, so didn't like to use such an ugly thing like VBScript inception (even if it's a bit slower) :) But if somebody still does really need that - I'm fine with that.
@scintill and what's your opinion about separation of jQuery-related part? It seems to be significant piece of code that is not really needed for everyone who uses this library.
from jdataview.
The lib is trying to be a polyfill for DataView. So might as well be as compatible as we can get. And the code is already written and working :)
from jdataview.
If you mean moving the jQuery event listeners out of jdataview.js, I agree that would probably be cleaner, but don't really care enough to submit a patch. :P At least it looks like there will be no errors if jQuery is not loaded, so not much harm done to people not using it.
from jdataview.
Sure, it's not about errors, it's just about a bit cleaner code.
from jdataview.
Related Issues (20)
- Uint64.toString fails for large numbers HOT 2
- Using jDataView in chrome throws Uncaught ReferenceError: NODE is not defined HOT 3
- Better support for negative bitLength HOT 11
- Use backing buffer/view's methods when available. HOT 5
- Use native methods for bit access HOT 4
- Remove string concatenation at runtime HOT 3
- Bitfields doesn't work well in littleEndian mode HOT 1
- Dist file without sourceMappingURL HOT 5
- it
- Bitfield API ignores endianness. HOT 2
- Question: Is jDataView runnable in web worker? HOT 1
- Question: How to convert the "uint16" value to half-precision float (i.e. "float16")? HOT 1
- Weird Float types (48 & 80 bit) HOT 1
- readString() with variable 7-bit based integer as prefix length HOT 1
- untar demo intersperses chunks of JavaScript in textareas HOT 1
- dataview constructor argument offset is invalid HOT 10
- Getting an error only after minification of dist/browser/jdataview.js? HOT 4
- Constuctor doesn't work the same as a real DataView? HOT 7
- Cannot use 'in' operator to search for 'Buffer' in undefined HOT 6
- Remove old fallbacks HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jdataview.