nl_tokens: Image loaded checker
pl_tokens: function imageLoaded ( img ) { /** Notify the promise */ def . notify ( "notify" ) ; /** Add the image to the imgs array */ imgs . push ( img ) ; /** If the imgs array size is the same as the src's */ if ( imgs . <mask> == srcs . length ) { /** First sort images, to have the same order as src's */ sortImages ( ) ; /** Resolve the promise with the images */ def . resolve ( imgs ) ; } }