From 0d8282c61a49cbf8a096e94221fd3dffc4c641c2 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 19 Jun 2013 16:44:38 +0100 Subject: [PATCH] Dev fix: _pluck should check that what is is accessing exists - When using _pluck with deferred rendering, there were a number of errors due to the nTr element being undefined (that's what deferred rendering is all about of course). So the logic to check that pluck can pluck from a source object needs ot be added. --- media/src/api/api._selectors.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/media/src/api/api._selectors.js b/media/src/api/api._selectors.js index 0bf67428..bee6fbc8 100644 --- a/media/src/api/api._selectors.js +++ b/media/src/api/api._selectors.js @@ -9,12 +9,16 @@ var _pluck = function ( a, prop, prop2 ) { // is essential here if ( prop2 !== undefined ) { for ( ; i