Announcement

Collapse
No announcement yet.
This topic is closed.
X
X
  • Filter
  • Time
Clear All
new posts

    Javascript prototypes overtwritten

    Hello! I noticed that smart client API has some javascript prototypes overwritten like Array.find(). Ex:
    [].find
    ƒ isc_Arra_find(_1,_2,_3){if(isc.isA.List(this)||!isc.isA.Function(_1)){var _4=this.findIndex(_1,_2,_3);return(_4!=-1)?this.get(_4):null}
    var _5=Object(this),_4=Array.prototype.findIndex.call(_5,_1,_2,…

    Is there a way to don't overwrite? i need to use to native code. Thanks

    #2
    Our version of find() is fully compatible with the native one. But if you want the native one for some reason, you can capture it off the Array prototype before SmartClient loads.

    Comment


      #3
      I'm getting errors using overwritten find() which wasn't occurring. So, how can i capture it off the Array prototype before SmartClient load it ??

      Comment


        #4
        If you think you have a valid use of find() that we're breaking, please post code to reproduce the problem.

        If instead you want to grab the original find() implementation, a number of JavaScript tutorial sites can help you with this.

        Comment

        Working...
        X