ionic-framework: bug: Error: ATTempted to assign to readonly property on ion-slide

Type: <span ionic-type>bug</span>

Platform: <span ionic-platform>ios</span> <span ionic-platform-version>8</span> <span ionic-webview>webview</span>

<span ionic-description>i have this error. it fire on ios simulator and real device.

Error: Attempted to assign to readonly property.
ChildScope@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:22509:23
$new@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:22517:40
boundTranscludeFn@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:15919:40
controllersBoundTransclude@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:16583:35
ngRepeatAction@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:33329:26
$watchCollectionAction@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:22937:21
$digest@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:23070:31
$apply@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:23333:31
http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:25059:42
completeOutstandingRequest@http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:13732:15
http://10.5.44.212:8100/lib/ionic/js/ionic.bundle.js:14112:33

my ionic version is 1.0.1

this error appear when i have a ion-slide with more than one image and i switch between views (with cache: false). It appear randomly. it’s not a blocking error but somethink crash view app. not solution jet need help!

</span>

<span is-issue-template></span>

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

ok i found the solution. It’s a safari mobile bug related to angularJs. To solve it we need to rewrite all code like this:

object.$$a = 5;

to this:

var __webkitAssign__$$a = '$$a';
object[__webkitAssign__$$a] = 5;

The npm repo has a fantastic utility that help us.

https://www.npmjs.com/package/webkit-assign It rewrite the ionic bundle for safari bug and IT WORK PERFECT!.