Skip to content

Instantly share code, notes, and snippets.

View v-escobar's full-sized avatar

Víctor v-escobar

View GitHub Profile
@v-escobar
v-escobar / .phpstorm.meta.php
Last active September 28, 2017 11:10
.phpstorm.meta.php for Joomla 3.8
<?php
namespace {
use Joomla\CMS\Application\CliApplication;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Router\Router;
This file has been truncated, but you can view the full file.
/**
* @license AngularJS v1.5.8
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window) {'use strict';
/**
* @description
*
This file has been truncated, but you can view the full file.
(function(window){'use strict';function minErr(module,ErrorConstructor){ErrorConstructor=ErrorConstructor||Error;return function(){var SKIP_INDEXES=2;var templateArgs=arguments,code=templateArgs[0],message='['+(module?module+':':'')+ code+'] ',template=templateArgs[1],paramPrefix,i;message+=template.replace(/\{\d+\}/g,function(match){var index=+match.slice(1,-1),shiftedIndex=index+ SKIP_INDEXES;if(shiftedIndex<templateArgs.length){return toDebugString(templateArgs[shiftedIndex]);}
return match;});message+='\nhttp://errors.angularjs.org/1.5.8/'+
(module?module+'/':'')+ code;for(i=SKIP_INDEXES,paramPrefix='?';i<templateArgs.length;i++,paramPrefix='&'){message+=paramPrefix+'p'+(i- SKIP_INDEXES)+'='+
encodeURIComponent(toDebugString(templateArgs[i]));}
return new ErrorConstructor(message);};}
var REGEX_STRING_REGEXP=/^\/(.+)\/([a-z]*)$/;var VALIDITY_STATE_PROPERTY='validity';var hasOwnProperty=Object.prototype.hasOwnProperty;var lowercase=function(string){return isString(string)?string.toLowerCase():string;};var
@v-escobar
v-escobar / Javascript
Created June 20, 2013 08:59
Get the old value from an input text using change event
var $el = $('#myInputElement');
$el.data('oldVal', $el.val());
$el.change(function(){
//store new value
var $this = $(this);
var newValue = $this.data('newVal', $this.val());
})
.focus(function(){