This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div x-pagination=""> | |
<div class="previous">Previous</div> | |
<div class="items-container"></div> | |
<div class="next">Next</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Extending an example BaseClass, using prototype, underscore and mixins." /> | |
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> | |
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script> | |
<script src="http://jashkenas.github.io/backbone/backbone-min.js"></script> | |
<link href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some doc | |
// Walkthrough https://medium.com/the-javascript-collection/ce6da2d324fe | |
// 'arguments' native variable: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments | |
var curry = function(fn){ | |
var args = Array.prototype.slice.call(arguments, 1); | |
return function(){ | |
return fn.apply(this, args.concat( | |
Array.prototype.slice.call(arguments, 0))); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========================================================================== | |
Cached 'Functional' patterned mixin, using curry to invoke config parameters. | |
===========================================================================*/ | |
// Create curry prototype; | |
Function.prototype.curry = function(){ | |
var slice = Array.prototype.slice, | |
args = slice.apply(arguments), | |
that = this; | |
OlderNewer