This commit is contained in:
An Phan 2015-12-14 00:13:08 +08:00
parent a4335bff52
commit 0c4df50fa9
2 changed files with 4 additions and 4 deletions

View file

@ -89,8 +89,8 @@ class Media
* @param SplFileInfo $file The SplFileInfo instance of the file.
*
* @return bool|Song A Song object on success,
* true if file existing but unmodified,
* or false on error.
* true if file exists but is unmodified,
* or false on an error.
*/
public function syncFile(SplFileInfo $file)
{

View file

@ -2,7 +2,7 @@ import $ from 'jquery';
/**
* Add a "infinite scroll" functionality to any component using this plugin.
* Such component should:
* Such a component should:
* - have the parent DOM element defined as "wrapper": v-el:wrapper
* - have a `scrolling` method bound to `scroll` event on such element: @scroll="scrolling"
* - have the array of all objects named as `items`, either as data, computed, or a prop
@ -19,7 +19,7 @@ export default {
scrolling(e) {
var $wrapper = $(this.$els.wrapper);
// Here we checks if the user has scrolled to the end of the wrapper (or 32px to the end).
// Here we check if the user has scrolled to the end of the wrapper (or 32px to the end).
// If that's true, load more items.
if ($wrapper.scrollTop() + $wrapper.innerHeight() >= $wrapper[0].scrollHeight - 32) {
this.displayMore();