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
| <?php | |
| namespace Query\Functions; | |
| use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
| use Doctrine\ORM\Query\Lexer; | |
| use Doctrine\ORM\Query\Parser; | |
| use Doctrine\ORM\Query\QueryException; | |
| use Doctrine\ORM\Query\SqlWalker; |
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
| ;(function($) { | |
| // Add inner and outer width to zepto (adapted from https://gist.github.com/alanhogan/3935463) | |
| var ioDim = function(dimension, includeBorder) { | |
| return function (includeMargin) { | |
| var sides, size, elem; | |
| if (this) { | |
| elem = this; | |
| size = elem[dimension](); | |
| sides = { | |
| width: ["left", "right"], |
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
| Element.prototype.matchesSelector || (Element.prototype.matchesSelector = Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || function(selecta) { | |
| var els = document.querySelectorAll(selecta); | |
| for ( var i=0, L=els.length; i<L; i++ ) { | |
| if ( els[i] == this ) { | |
| return true; | |
| } | |
| } | |
| return false; | |
| }); |
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
| var _hasOwnProperty = Object.prototype.hasOwnProperty; | |
| if(!Element.prototype.matchesSelector) { | |
| Element.prototype.matchesSelector = | |
| Element.prototype.matches || | |
| Element.prototype.webkitMatchesSelector || | |
| Element.prototype.mozMatchesSelector || | |
| Element.prototype.msMatchesSelector || | |
| Element.prototype.oMatchesSelector || function(selector) { | |
| if(!selector)return false; |
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
| define(['can/util/library', 'can/route', 'can/control'], function (can) { | |
| var optionalParam = /\((.*?)\)/g, | |
| escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g; | |
| var getOptionalParam = function(route){ | |
| return route.replace(escapeRegExp, '\\$&').match(optionalParam); | |
| }; | |
| // ## control/route.js |