Questions tagged [es5-shim]

Support for ECMAScript5 (ES5) on older browsers (mainly pre IE9). The ES5 specification was published in 2009.

Support for ECMAScript5 (ES5) on older browsers (mainly pre IE9). The ES5 specification was published in 2009.

Compatibility table https://kangax.github.io/compat-table/es5/

56 questions
2
votes
2 answers

Is ES5 shim still needed for Internet Explorer 11?

I am looking at the compat tables, and it seems like IE 11 supports all of ES5 except (under Miscellaneous) this feature: "Enumerable properties can be shadowed by non-enumerables". I don't understand what that means, despite the provided example. …
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
2
votes
1 answer

Passing filtered value to react render()

I use react-datagrid to represent my documents table, but I cannot figure out how to instantiate render() scope with full data. It always instantiate with no data. this is my datagrid 'use strict'; var React = require('react') var DataGrid =…
kyserslick
  • 591
  • 1
  • 10
  • 27
2
votes
2 answers

Assignment to read-only properties is not allowed in strict mode in [background: url({{XXX}}) no-repeat center center

I am getting this error in Edge but in chrome everything is fine Unable to understand what is wrong here...
Error in…
Arun Tyagi
  • 2,206
  • 5
  • 24
  • 37
1
vote
1 answer

Bloodhound typeahead undefined in console laravel

I am using typeahead with bloodhound which I successfully integrated with it but when i keypress on it it makes the tag but didnt search it from my ajax code. In console it says undefined bloodhound.
rescue1155
  • 365
  • 1
  • 14
1
vote
0 answers

tsconfig for typescript to support es5 target throws error

My tsConfig.json is as below: { "compilerOptions": { "target":"es5", "module":"system", "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "sourceMap": true, …
Vedant Terkar
  • 4,553
  • 8
  • 36
  • 62
1
vote
1 answer

Angular 2 ViewChild implementation with ES5

I am writing an app for angular 2 with ES5. I want to have a component with dynamically loaded view child, that will load existing components. I saw examples in TypeScript but I am failing do that in ES5, and to inject ng.core.ViewChild in…
Svenv
  • 369
  • 1
  • 3
  • 14
1
vote
1 answer

es5 to es6 + webpack on angular1 app

I am converting Angular1 to es6 and starting to use webpack. Because of that I need to use 'import/export modules' in all my files. Do I need to import modules on every file js I have? Even the $window of angular for example? Even on the resolve of…
einav
  • 599
  • 3
  • 8
  • 15
1
vote
1 answer

Webpack 2 not loading imports for Angular2 Typescript application

I'm trying to implement webpack on a medium size angular2 project that uses typescript. But when I run webpack it only bundles the 2 files I specify in the config file. It never traverses through the import tree and loads the rest of the…
Droxx
  • 197
  • 1
  • 8
1
vote
1 answer

Access private functions in imported module in JS?

I have Ember component that has some functions defined e.g.: export default Ember.Component.extend({ _someFunction: function(){} }); Now if I import this component in some other component: import FirstComponent from 'somePath...'; Can I and…
user3921420
  • 463
  • 1
  • 5
  • 10
1
vote
3 answers

Recursion between different objects and combine them uniquely, without duplicate

I've been trying to figure out how to do recursion for 2 objects that have similar properties, but also have differences. I need to merge these 2 objects in a unique way, so there are no duplicate countries or models etc. EDIT: in vanilla js only…
Tatarin
  • 1,238
  • 11
  • 28
1
vote
1 answer

React JS component renders multiple times in Meteor

I using Meteor 1.3 for this application together with react js and Tracker React. I have a page to view all available users in the application. This page require user to login to view the data. If user not logged in, it will shows the login form and…
dev-jim
  • 2,404
  • 6
  • 35
  • 61
1
vote
0 answers

React IE8 works locally, not in production

We started introducing React to our large Django project to handle frontend complexity. So far, so good, but we ran into a problem. React does not work in production on IE8. Locally it works fine on IE8. I've included es5-shim and es5-sham and I do…
dnmh
  • 2,045
  • 2
  • 34
  • 49
1
vote
3 answers

Check in javascript if es5-shim.js is loaded or not? That's for ie8

Is there a way to define if https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.0/es5-shim.js from https://cdnjs.com/libraries/es5-shim is loaded or not? For AngularJS you can check in javascript: if(!window.angular){ //not loaded } What's the…
1
vote
1 answer

PouchDB not working in IE8

I am testing PouchDB app in IE8, but I am getting following errors. I have included pouchdb.localstorage.js and es5.shim.js file in index.html. You can find below the errors: Expected Identifier, string or number for following line…
1
vote
2 answers

How to stop a forEach loop in Typescript - can I use .some()?

I've seen this question about stopping a ES5 forEach loop, which pretty much suggests to use .every() or .some() instead of forEach. I believe I remember typescript uses shims for old browsers to support for example forEach. Is this correct and if…
Flion
  • 10,468
  • 13
  • 48
  • 68