0

Splice

Hi guys. I would like to ask some questions on the method splice(). From my understanding.... in javascripts... the method array.splice() takes in 2 parameters which is the index to start from, and how many elements to remove from the array. However, it does not seems to work this way when applied in Kontx Framework. Does anyone have any idea how does splice() works in KONtx?


Thanks in advance.

by
2 Replies
  • QUOTE (Wei loon Ang @ Apr 9 2011, 06:39 AM) <{POST_SNAPBACK}>
    Hi guys. I would like to ask some questions on the method splice(). From my understanding.... in javascripts... the method array.splice() takes in 2 parameters which is the index to start from, and how many elements to remove from the array. However, it does not seems to work this way when applied in Kontx Framework. Does anyone have any idea how does splice() works in KONtx?


    Thanks in advance.

    Actually, the framework doesn't have its own splice method, it uses the native SpiderMonkey implementation. Also, it takes at least two parameters, more if you're adding to the array.

    You'll have to post some code.
    0
  • Hmmm thanks for your help. That link that you gave made me realise that its my own misinterpretation of how splice works. Thanks again. :r
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets