Closed (fixed)
Project:
DrupalGap
Version:
7.x-1.x-dev
Component:
Mobile Application Development Kit Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2014 at 16:36 UTC
Updated:
16 Sep 2014 at 21:02 UTC
Jump to comment: Most recent
Comments
Comment #1
tyler.frankenstein commentedComment #2
sanchiz commentedThis happens when content_weighted have elements with negative weight, and JavaScript arrays doesn't support negative indexes. Length of array always 0, because Array.prototype.length it's not counter of rows, it's the largest index of array(exclude negative indexes).
Comment #3
sanchiz commentedHere's a pull request to fix that issue: https://github.com/signalpoint/DrupalGap/pull/369
Comment #4
sanchiz commentedComment #5
tyler.frankenstein commentedThank you @lifeinpoetry for reporting the problem, and @sanchiz for the code fix.
Grab the latest bin/drupalgap.js file for the fix, otherwise it will become available in the next recommended release.
http://drupalgap.org/download